Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template11.C
blob004361d6cb7cb6eb4c9a11ee8f25a198e8c13a1f
1 // { dg-do run  }
2 // Bug: initializers for static data members of templates don't get run.
4 template <class T> struct A {
5   static T t;
6 };
8 int foo () { return 1; }
10 template <>
11 int A<int>::t = foo ();
13 int main ()
15   return (A<int>::t != 1);