Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/static6.C

raw
1 // { dg-do link }
2 // { dg-xfail-if "" { *-*-aout *-*-coff *-*-hms } }
3
4 // Simplified from testcase by Erez Louidor Lior <[email protected]>
5
6 template <class T> struct A {
7 static const int l[1];
8 };
9
10 template<class T>
11 const int A<T>::l[1] = {1};
12
13 int i = A<int>::l[0];
14
15 int main(){}