1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, February 2011. */
2 /* { dg-do compile } */
4 /* Test that the 'objc_exception' attribute is accepted for
5 @interfaces, but not for anything else. */
10 __attribute__ ((objc_exception))
18 __attribute__ ((__objc_exception__))
25 __attribute__ ((objc_exception))
26 @protocol MyProtocol; /* { dg-warning "ignored" } */
28 __attribute__ ((objc_exception))
29 int myVariable; /* { dg-warning "ignored" } */
31 __attribute__ ((objc_exception))
32 int myFunction (int argument); /* { dg-warning "ignored" } */