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