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;