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