summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/init3.C
blob: 9799a206d28954e48356ea49bc84a1c06988f17f (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/11027

template <class T>
struct X {
   typedef void (X::*pfun)();
   static pfun p[];
};

template <class T>
typename X<T>::pfun X<T>::p[] = {};