1 // RUN: %clang_cc1 -fsyntax-only -verify %s
10 bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-note {{to match this '('}}
11 bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}}
13 [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}}
21 - (void)m1:(id <MyProtocol> const)arg1;
23 // FIXME: provide a better diagnostic (no typedef).
24 - (void)m2:(id <MyProtocol> short)arg1; // expected-error {{'short type-name' is invalid}}
27 typedef int NotAnObjCObjectType;
29 // GCC doesn't diagnose this.
30 NotAnObjCObjectType <SomeProtocol> *obj; // expected-error {{invalid protocol qualifiers on non-ObjC type}}
32 typedef struct objc_class *Class;
34 Class <SomeProtocol> UnfortunateGCCExtension;