aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping2.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/scoping2.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C
new file mode 100644
index 00000000000..68c8c754a80
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C
@@ -0,0 +1,15 @@
+// Bug: A function is not hidden properly by a use of its name in an
+// inner scope.
+// Build don't link:
+
+struct A
+{
+ struct B
+ {
+ int f;
+ B() : f(0) {};
+ void g() { f = 0; };
+ };
+ void f();
+ void f(int);
+};