blob: 004361d6cb7cb6eb4c9a11ee8f25a198e8c13a1f [file] [log] [blame]
// { dg-do run }
// Bug: initializers for static data members of templates don't get run.
template <class T> struct A {
static T t;
};
int foo () { return 1; }
template <>
int A<int>::t = foo ();
int main ()
{
return (A<int>::t != 1);
}