diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/warning2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/warning2.C | 14 |
1 files changed, 0 insertions, 14 deletions
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 index 6b51dd05219..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/warning2.C +++ /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 int f () = 0; -}; - -struct B: public A { int f () { } }; - -int main() -{ - B* bp; - A& ar = (A&)bp; // WARNING - -} |