Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.ns / using9.C
blob9de6b3199b5c6699b98b0243ad1db27f7b8876ea
1 // { dg-do assemble  }
2 // Test for proper merging of functions from multiple using directives.
5 namespace standard 
6 { void print(int) {}
7   void dump(int)  {}
9 namespace A { using standard::print; }
10 namespace B { using namespace standard; }
11 namespace User
12 { using namespace standard; 
13   using namespace A;
14   void test()
15   {  print(1); }
16   // egcs-1.1: call of overloaded `print (int)' is ambiguous
18 namespace User2
19 { using namespace standard;
20   using namespace B;
21   void test()
22   { print(1); } // egcs has no problems here