1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
2 /* { dg-do compile } */
4 /* Test that you get a warning when an unknown protocol attribute is ignored. */
8 __attribute__ ((unknown_attribute))
9 @protocol MyProtocol /* { dg-warning "ignored" } */
13 __attribute__ ((unknown_attribute))
14 @protocol MyProtocol2; /* { dg-warning "ignored" } */
16 /* Use the protocols to double-check that no more warnings are
19 @interface MyClass <MyProtocol>
22 int test (id <MyProtocol2> x)
24 if (@protocol (MyProtocol) == @protocol (MyProtocol2))