]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/ref10.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / ref10.C
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 (file)
index 876ca45..0000000
+++ /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);
-}