1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
// { dg-do assemble } // Origin: Mark Mitchell <mark@codesourcery.com> template <class T> int g (T); int j = g (3); template <class T> inline T f (T) { return 2; } template <class T> struct S { static const int i; }; template <class T> const int S<T>::i = f (3); template <class T> int g (T) { return S<double>::i; }