OSDN Git Service

2012-04-15 Fabien ChĂȘne <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / lookup / ambig4.C
1 // PR c++/13377
2 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3 // { dg-do compile }
4
5 namespace N
6 {
7   int i;            // { dg-error "i" }
8 }
9
10 int i;              // { dg-error "i" }
11
12 using namespace N;
13
14 void foo() { i; }   // { dg-error "ambiguous" }