Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / const2.C
blob1e63ca57822b33946e2bd56d8dbf7ede2051e890
1 // { dg-do link }
2 // This test should get a linker error for the reference to A<int>::i.
3 // { dg-error "i" "" { target *-*-* } 0 }
5 template <class T> struct B { static const int i = 3; };
6 template <class T> struct A { static const int i = B<T>::i; };
7 const int *p = &A<int>::i;
9 int main(){}