Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / friend10.C
blobd784eaf472d8a2901d8cd9e325f5c6c6bab7bb12
1 // { dg-do run  }
2 template <class T>
3 void f(T);
5 template <class U>
6 class C
8   template <class T>
9   friend void f(T)
10     {
11       C<U> c;
12       c.i = 3;
13     }
15 public:
17   void g()
18     {
19       f(3.0);
20     }
22   int i;
25 int main()
27   f(7);
28   C<double> c;
29   c.g();