You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
280 B
17 lines
280 B
4 months ago
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
struct meta {
|
||
|
template<typename U>
|
||
|
struct apply {
|
||
|
typedef U* type;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
template<typename T, typename U>
|
||
|
void f(typename T::template apply<U>::type);
|
||
|
|
||
|
void test_f(int *ip) {
|
||
|
f<meta, int>(ip);
|
||
|
}
|