diff options
Diffstat (limited to 'clang/test/SemaObjC/protocol-archane.m')
-rw-r--r-- | clang/test/SemaObjC/protocol-archane.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/protocol-archane.m b/clang/test/SemaObjC/protocol-archane.m index 2cba1fad051..647c5e74a65 100644 --- a/clang/test/SemaObjC/protocol-archane.m +++ b/clang/test/SemaObjC/protocol-archane.m @@ -26,4 +26,10 @@ void foo(id x) { typedef int NotAnObjCObjectType; // GCC doesn't diagnose this. -NotAnObjCObjectType <SomeProtocol> *obj; // expected-warning {{ignoring protocol qualifiers on non-ObjC type}} +NotAnObjCObjectType <SomeProtocol> *obj; // expected-error {{invalid protocol qualifiers on non-ObjC type}} + +// Decided not to support the following GCC extension. Found while researching rdar://6497631 +typedef struct objc_class *Class; + +Class <SomeProtocol> UnfortunateGCCExtension; // expected-error {{protocol qualified 'Class' is unsupported}} + |