1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
3 /* { dg-options "-fobjc-exceptions" } */
4 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
6 /* This test checks the syntax @catch (...) which catches any
7 exceptions. Check that code using it runs correctly. */
9 #include "../objc-obj-c++-shared/TestsuiteObject.m"
12 @interface MyObject : TestsuiteObject
15 @implementation MyObject
44 if (test ([MyObject new]) != 5)
47 if (test ([TestsuiteObject new]) != 6)