diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/cast2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/cast2.C | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/cast2.C b/gcc/testsuite/g++.old-deja/g++.other/cast2.C deleted file mode 100644 index 80cf7dc1864..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.other/cast2.C +++ /dev/null @@ -1,17 +0,0 @@ -// Build don't link: -// Origin: Mark Mitchell <mark@codesourcery.com> - -struct A { -}; - -int main() -{ - A a; - typedef void (A::*F)(); - F p; - - const_cast<const A>(a); // ERROR - const_cast requires pointer/ref types - const_cast<F>(p); // ERROR - const_cast requires pointer/ref types - const_cast<int (*)()>(&main); // ERROR - function type in const_cast - const_cast<int (&)()>(main); // ERROR - function type in const_cast -} |