OSDN Git Service

* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / friend9.C
1 template <class U>
2 class C
3 {
4   template <class T>
5   friend void f(T);
6
7   int i;
8 };
9
10
11 template <class T>
12 void f(T)
13 {
14   C<int> c;
15   c.i = 3;
16 }
17
18
19 int main()
20 {
21   f(7);
22 }