summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/virtual3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/virtual3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/virtual3.C24
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/virtual3.C b/gcc/testsuite/g++.old-deja/g++.other/virtual3.C
deleted file mode 100644
index b9a77191030..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.other/virtual3.C
+++ /dev/null
@@ -1,24 +0,0 @@
-struct B
-{
- virtual int f() volatile
- { return 1; }
-};
-
-struct D : public B
-{
- int f()
- { return 0; }
-};
-
-struct D2 : public D
-{
- int f()
- { return 2; }
-};
-
-int main()
-{
- D2 d2;
- D& d = d2;
- return d.f();
-}