1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// { dg-do assemble } template <class T> struct S {}; template <> struct S<int> { void f(); void g(); }; void S<int>::f() {} template <> void S<int>::g() {} // { dg-error "" } does not match any template declaration