summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.martin/lookup1.C
blob: cb5eb07c9bc0f43d475e41f46e0ed81b437b6a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
//In the base class list, the context of the current is used
//reported by Stephen Vavasis <vavasis@CS.Cornell.EDU>

namespace N1 {
  namespace N2 {
    class A{};
    class B;
  }
}

class N1::N2::B : public A {
};


class C1 {
    class A{};
    class B;
};

class C1::B : A {
};