aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static6.C
blob: c52c3cb2af512438af1f2e313cf07ce12c058b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't run:

// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>

template <class T> struct A {
 static const int l[1];
};

template<class T>
const int A<T>::l[1] = {1};

int i = A<int>::l[0];

int main(){}