summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/comdat2-aux.cc
blob: 283e4e092bd1e243862a5b029fd9e2141cf4b2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
template <class T>
struct S {
  static int f ()
  {
    static int i;
    return ++i;
  }
  S () {};
  ~S () {};
};

typedef S<int> a;

int g ()
{
  return a::f();
}