2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / noweak1.C
blob7d73cba7a85300aba35144fbe36d654944cb026b
1 // { dg-do run  }
2 // { dg-options "-fno-weak" }
3 // Test that -fno-weak doesn't break explicit instantiation of static data.
5 template <class T> struct A
7   static int i;
8 };
10 template <class T> int A<T>::i = 42;
12 template class A<int>;
14 int main ()
16   return (A<int>::i != 42);