rt_gccstream/gcc/testsuite/g++.old-deja/g++.other/comdat2-aux.cc

18 lines
166 B
C++

template <class T>
struct S {
static int f ()
{
static int i;
return ++i;
}
S () {};
~S () {};
};
typedef S<int> a;
int g ()
{
return a::f();
}