summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ns/lookup4.C
blob: e4b4be31fdd329b798fad9423da80363365fee9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble  }
namespace X{
  typedef int foo;
  const int bar=2;
  namespace Y{
    void f(foo);
    extern int g;
    extern int g1;
    struct h{
      void i(foo);
    };
  }
}

void X::Y::f(foo)
{
}

int X::Y::g = bar;
int X::Y::g1(bar);

void X::Y::h::i(foo)
{}