OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [using9.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// Test for proper merging of functions from multiple using directives.
3
 
4
 
5
namespace standard
6
{ void print(int) {}
7
  void dump(int)  {}
8
}
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
17
}
18
namespace User2
19
{ using namespace standard;
20
  using namespace B;
21
  void test()
22
  { print(1); } // egcs has no problems here
23
}
24
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.