1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct meta { |
5 | template<typename U> |
6 | struct apply { |
7 | typedef U* type; |
8 | }; |
9 | }; |
10 | |
11 | template<typename T, typename U> |
12 | void f(typename T::template apply<U>::type); |
13 | |
14 | void test_f(int *ip) { |
15 | f<meta, int>(ip); |
16 | } |
17 |