OSDN Git Service

Restrict DR 757 change to C++0x mode.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ns / lookup4.C
1 // { dg-do assemble  }
2 namespace X{
3   typedef int foo;
4   const int bar=2;
5   namespace Y{
6     void f(foo);
7     extern int g;
8     extern int g1;
9     struct h{
10       void i(foo);
11     };
12   }
13 }
14
15 void X::Y::f(foo)
16 {
17 }
18
19 int X::Y::g = bar;
20 int X::Y::g1(bar);
21
22 void X::Y::h::i(foo)
23 {}