summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/nested4.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/nested4.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/nested4.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/nested4.C b/gcc/testsuite/g++.old-deja/g++.jason/nested4.C
new file mode 100644
index 000000000..02bf354e9
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/nested4.C
@@ -0,0 +1,17 @@
+// { dg-do assemble }
+// From: quipu@ulrik.uio.no
+// Subject: extern "C" nested class
+// Date: Fri, 13 Aug 1993 15:33:53 +0200
+
+extern "C" {
+ struct A {
+ struct B { int j; } *x;
+ };
+}
+
+void
+foo () {
+ A a;
+ struct A::B *b;
+ b = a.x; // { dg-bogus "" } type `B' is not a base type for type `B'
+}