summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static7.C
blob: 49c558c3a6cc73223621ef17d01ec8998f2f1b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S {
  S() {}

  static S s;
};

template <class T>
S<T> S<T>::s;

S<int> si;