Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.ns/template11.C

raw
1 // { dg-do run }
2 void foo(){}
3
4 namespace Bar{
5 template<class X>
6 class Y{
7 friend void foo(Y<X>){}
8 };
9 }
10
11 int main()
12 {
13 Bar::Y<int> y;
14 foo(y);
15 foo();
16 }