1 // PR c++/24511 - [DR 470] explicit instantiation/extern template unsats
2 // on symbols defined later
5 template <class T> struct S { T foo (); T bar (); };
6 template <class T> T S<T>::foo () { return T (); }
10 // This part is being tested by the dg-final directive.
11 template struct S<int>;
14 // This part is not being tested.
15 extern template struct S<int>;
18 return S<int>().foo () + S<int>().bar ();
22 template <class T> T S<T>::bar () { return T (); }
24 // { dg-final { scan-assembler-not "\\\*UND\\\*\[^\n]*_Z1fIiEvPT_" } }