OSDN Git Service

* gcc.dg/tm/memopt-6.c: Cleanup tmedge tree dump.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / explicit7.C
1 // PR c++/22263
2 // { dg-do link }
3
4 template <class T> struct S { T foo (); T bar (); };
5 template <class T> T S<T>::foo () { return bar (); }
6 template struct S<int>;
7 template <class T> T S<T>::bar () { return T (); }
8
9 #if !__GXX_WEAK__
10 template int S<int>::bar ();
11 #endif
12
13 int main () { return S<int>().foo (); }