]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/ref8.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / ref8.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/ref8.C b/gcc/testsuite/g++.old-deja/g++.jason/ref8.C
deleted file mode 100644 (file)
index 10e335e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// PRMS Id: 5184
-// Bug: cast to C& below does not adjust address
-
-struct A {};
-struct B {
-  virtual void foo () {};
-};
-struct C : public B, public A {};
-
-int main() {
-    C c;
-
-    A& ar = c;
-    C& cr = (C&)ar;
-
-    cr.foo();  // this line causes core dump
-}