Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.pt / link1.C
blob4e31c28bd39993136a15dc3f4ca52978a20f00f2
1 // { dg-do link  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 template <class T>
5 int f(T);
7 template <class T>
8 struct S {
9   template <class U>
10   friend int f(U) { return 0; }
13 int k = f(2);
15 template <class T>
16 int g(T);
18 int h = g(7);
20 template <class T>
21 int g(T) {
22   S<T> si;
23   return 0;
26 int main()