Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / obj-c++.dg / try-catch-3.mm
blob9341ce55bd2a7f623c68b97e71a113f1149e35c9
1 /* Test if caught exception objects are accessible inside the
2    @catch block.  (Yes, I managed to break this.)  */
3 /* Author: Ziemowit Laski <zlaski@apple.com> */
5 /* { dg-do compile } */
6 /* { dg-options "-fobjc-exceptions" } */
8 #include <objc/Object.h>
10 const char *foo(void)
12   @try {
13     return "foo";
14   }
15   @catch (Object* theException) {
16     return [theException name];
17   }