aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@gcc.gnu.org>1998-10-21 14:41:04 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>1998-10-21 14:41:04 +0000
commit822a4ff1627c2688dab2df69cf66245407bd7cd9 (patch)
treef97ebfad9dfa14d5ecb75abe0c425c3c9eb1ea8d /gcc
parent6946bc60bfa14c6d48e3a1b655384502e84c591c (diff)
downloadgcc-822a4ff1627c2688dab2df69cf66245407bd7cd9.zip
gcc-822a4ff1627c2688dab2df69cf66245407bd7cd9.tar.gz
gcc-822a4ff1627c2688dab2df69cf66245407bd7cd9.tar.bz2
New test case.
From-SVN: r23214
Diffstat (limited to 'gcc')
-rw-r--r--gcc/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 100644
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 {
+};