1 // RUN: clang-cc -fsyntax-only -verify %s
9 bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-note {{to match this '('}}
10 bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}}
12 [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}}
20 - (void)m1:(id <MyProtocol> const)arg1;
22 // FIXME: provide a better diagnostic (no typedef).
23 - (void)m2:(id <MyProtocol> short)arg1; // expected-error {{'short type-name' is invalid}}
26 typedef int NotAnObjCObjectType;
28 // GCC doesn't diagnose this.
29 NotAnObjCObjectType <SomeProtocol> *obj; // expected-error {{invalid protocol qualifiers on non-ObjC type}}
31 typedef struct objc_class *Class;
33 Class <SomeProtocol> UnfortunateGCCExtension;