1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// { dg-do assemble } template <class A> class TEST { public: TEST (A) {} }; template <class A> class TEST2 { static A i; }; template <class A> A TEST2 <A>::i (0); TEST2 <TEST <int> > a; template class TEST2 <TEST <int> >;