]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/warning2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / warning2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/warning2.C b/gcc/testsuite/g++.old-deja/g++.jason/warning2.C
deleted file mode 100644 (file)
index b0d2d9e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// g++ ought to warn about casting a base pointer to a derived reference.
-// Build don't link:
-
-struct A {
-  virtual void f () = 0;
-};
-
-struct B: public A { void f () { } };
-
-int main()
-{
-  B* bp;
-  A& ar = (A&)bp;              // WARNING - 
-}