]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.eh/catch1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.eh / catch1.C
diff --git a/gcc/testsuite/g++.old-deja/g++.eh/catch1.C b/gcc/testsuite/g++.old-deja/g++.eh/catch1.C
deleted file mode 100644 (file)
index 052be5f..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// 
-// Copyright (C) 1999 Free Software Foundation, Inc.
-// Contributed by Nathan Sidwell 6 Jun 1999 <nathan@acm.org>
-
-// We cannot catch an incomplete type, or ptr to one
-
-struct A; // ERROR - forward decl
-
-void fn()
-{
-  try {}
-  catch (A *p) {} // ERROR - undefined type
-  try {}
-  catch (A p) {}  // ERROR - undefined type
-  try {}
-  catch (void const *p) {}  // ok
-}