8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/template11.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

15 lines
216 B
C

// Bug: initializers for static data members of templates don't get run.
template <class T> struct A {
static T t;
};
int foo () { return 1; }
int A<int>::t = foo ();
int main ()
{
return (A<int>::t != 1);
}