aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/binding3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/binding3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/binding3.C20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/binding3.C b/gcc/testsuite/g++.old-deja/g++.jason/binding3.C
new file mode 100644
index 00000000000..3cd358fb7af
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/binding3.C
@@ -0,0 +1,20 @@
+// Bug: g++ fails to clear out the IDENTIFIER_CLASS_VALUEs of various names
+// after a class definition.
+// Build don't link:
+
+struct A {
+ typedef double T;
+ virtual T f () = 0;
+};
+
+class B {
+ B (const B&);
+ void operator=(const B&);
+public:
+ B ();
+ typedef void * T;
+};
+
+struct C : public A {
+ T f (); // gets bogus error
+};