1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
2 /* { dg-do compile } */
9 typedef MyClass AClass;
15 Class <MyProtocol> class_object; /* This is fine. */
17 id <MyProtocol> object; /* This is fine. */
19 AClass <MyProtocol> *object1; /* This is fine. */
21 Integer <MyProtocol> *object2; /* { dg-error ".Integer {aka int}. is not a template" } */
22 /* { dg-error ".MyProtocol. was not declared in this scope" "" { target *-*-* } 21 } */
24 Integer <NonExistingProtocol> *object3; /* { dg-error ".Integer {aka int}. is not a template" } */
25 /* { dg-error ".NonExistingProtocol. was not declared in this scope" "" { target *-*-* } 24 } */