OSDN Git Service

df770dac87d2a76c8c9ea6dc5ce4783461a37e0e
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / static3.C
1 // On targets that don't support weak symbols, we require an explicit
2 // instantiation of arr.
3 // excess errors test - XFAIL *-*-aout *-*-coff *-*-hpux* alpha*-dec-osf* *-*-hms
4
5 template<class T>
6 struct A {
7   static T arr[5];
8 };
9
10 template <class T>
11 T A<T>::arr[5] = { 0, 1, 2, 3, 4 };
12
13 int main ()
14 {
15   return A<int>::arr[0];
16 }