OSDN Git Service

Restrict DR 757 change to C++0x mode.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ns / template11.C
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 }