diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.martin/lookup1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.martin/lookup1.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/lookup1.C b/gcc/testsuite/g++.old-deja/g++.martin/lookup1.C new file mode 100644 index 000000000..cb5eb07c9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.martin/lookup1.C @@ -0,0 +1,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 { +}; |