Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / static3.C
blob5a638b1f7ad263254c274e7727515c0240752dab
1 // { dg-do run }
2 // On targets that don't support weak symbols, we require an explicit
3 // instantiation of arr.
4 // { dg-require-weak "" }
6 template<class T>
7 struct A {
8   static T arr[5];
9 };
11 template <class T>
12 T A<T>::arr[5] = { 0, 1, 2, 3, 4 };
14 int main ()
16   return A<int>::arr[0];