1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
2 /* { dg-do compile } */
4 /* Test that protocol qualifiers work in the same way with @class and @interface. */
13 /* This first snippet gives no warnings, which is correct as 'object'
14 implements <MyProtocol> and hence responds to 'method'. Note how
15 the details of the class 'MyClass' are never used. */
19 void test (MyClass <MyProtocol> *object)
25 /* This second snippet should behave identically. 'object' still implements
26 the same protocol and responds to 'method'. The details of MyClass or
27 MyClass2 are irrelevant. */
30 void test2 (MyClass2 <MyProtocol> *object)