aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/const2.C
blob: 3c064fe6d4adb383ab38107c384144e842273b05 (plain)
1
2
3
4
5
6
7
8
9
// This test should get a linker error for the reference to A<int>::i.
// An XPASS on this test is really a FAIL.
// excess errors test - XFAIL *-*-*

template <class T> struct B { static const int i = 3; };
template <class T> struct A { static const int i = B<T>::i; };
const int *p = &A<int>::i;

int main(){}