Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.pt / friend12.C
blob0c4275151a67bda8e0c825b784b2e16adc3da922
1 // { dg-do run  }
2 template <class T>
3 class C;
5 template <class T>
6 struct S
8   template <class U>
9   void f(U u1, U u2) {}
11   template <class U>
12   void f(U u)
13     {
14       C<T> ct;
15       ct.i = 3;
16     }
20 template <class T>
21 class C
23   template <class U>
24   friend void S<T>::f(U);
26   int i;
30 int main()
32   S<int> si;
33   si.f(3.0);