summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.martin/lookup1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.martin/lookup1.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.martin/lookup1.C22
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 100755
index 0000000..d45a02e
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.martin/lookup1.C
@@ -0,0 +1,22 @@
+//Build don't link:
+//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 {
+};