1 /* Test that Objective-C exceptions cause an error with -fobjc-exceptions. */
2 /* { dg-do compile } */
6 int dummy (int number, Object *o)
8 @try { /* { dg-error "fobjc-exceptions" "is required to enable Objective-C exception syntax" } */
10 @throw o; /* { dg-error "fobjc-exceptions" "is required to enable Objective-C exception syntax" } */
15 @throw; /* { dg-error "fobjc-exceptions" "is required to enable Objective-C exception syntax" } */
22 @synchronized (o) /* { dg-error "fobjc-exceptions" "is required to enable Objective-C exception syntax" } */