OSDN Git Service

PR c++/8316, c++/9315, c++/10136
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ext / noweak1.C
1 // Test that -fno-weak doesn't break explicit instantiation of static data.
2 // Special g++ Options: -fno-weak
3
4 template <class T> struct A
5 {
6   static int i;
7 };
8
9 template <class T> int A<T>::i = 42;
10
11 template class A<int>;
12
13 int main ()
14 {
15   return (A<int>::i != 42);
16 }