summaryrefslogtreecommitdiffstats
path: root/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1.cpp
blob: 0321a7cfa35d9c232fae84f88e5fad09480f2efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc -fsyntax-only -verify %s

template<typename T, int N>
struct A;

template<typename T>
struct A<T*, 2> {
  void f(T*);
  
  static T value;
};

template<class X> void A<X*, 2>::f(X*) { }

template<class X> X A<X*, 2>::value;