xref: /aosp_15_r20/external/clang/test/CXX/temp/temp.names/p4.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
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 
test_f(int * ip)14 void test_f(int *ip) {
15   f<meta, int>(ip);
16 }
17