aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/ref10.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/ref10.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/ref10.C31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/ref10.C b/gcc/testsuite/g++.old-deja/g++.jason/ref10.C
deleted file mode 100644
index 876ca45dd1e..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.jason/ref10.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Test that conversion from D* to B*& works properly.
-
-extern "C" int printf (const char *, ...);
-
-struct V {
- int a;
-};
-
-struct B: virtual V {
- int b;
-};
-
-struct D: B {
- int c;
-};
-
-V* gp = 0;
-
-void foo(V * const &r) {
- gp = r;
-}
-
-int bar(V *r) {
- return (r != gp);
-}
-
-int main() {
- D *p = new D;
- foo(p);
- return bar(p);
-}