summaryrefslogtreecommitdiff
path: root/clang/test/CXX/temp/temp.names/p4.cpp
blob: 103a1bd537f86d3402d0ec219c6b8877a155da64 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -fsyntax-only -verify %s

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);
}