aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template11.C
blob: 25449e2e742516377e81c252fa5a7106f9823289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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 ();

main ()
{
  return (A<int>::t != 1);
}