aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/scope5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/scope5.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/scope5.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/scope5.C b/gcc/testsuite/g++.old-deja/g++.law/scope5.C
new file mode 100644
index 00000000000..2aea15bd94c
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/scope5.C
@@ -0,0 +1,25 @@
+// Build don't link:
+// GROUPS passed scoping
+// local-class file
+// From: schlaege@methusalix.ert.rwth-aachen.de (Chris Schlaeger H Zivojnovic)
+// Date: Tue, 10 Aug 93 16:50:33 +0200
+// Subject: Bug report
+// Message-ID: <9308101450.AA28016@methusalix.ert.rwth-aachen.de>
+
+main()
+{
+ class foo
+ {
+ int i;
+ } ;
+ class bar
+ {
+ public:
+ bar() { y = 0; }
+ void f() { foo x; }
+ private:
+ int y;
+ } ;
+
+ bar c;
+}