OSDN Git Service

Restrict DR 757 change to C++0x mode.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ns / koenig4.C
1 // { dg-do run  }
2 void f();
3 void f(int);
4
5 namespace A{
6   struct S{
7     void f();
8     void f(S);
9   };
10   void f(S&){}
11   void h(S&){}
12 }
13
14 template<class T>
15 void g(T t){
16   f(t);
17 }
18
19 int main()
20 {
21   A::S s;
22   f(s);
23   g(s);
24   h(s);
25 }