FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / template11.C
blobfed322e8415d06b2e43c3afaefc0225e75c6e1b5
1 // Bug: initializers for static data members of templates don't get run.
3 template <class T> struct A {
4   static T t;
5 };
7 int foo () { return 1; }
9 template <>
10 int A<int>::t = foo ();
12 int main ()
14   return (A<int>::t != 1);