diff options
Diffstat (limited to 'test/SemaObjC/undefined-protocol-type-1.m')
-rw-r--r-- | test/SemaObjC/undefined-protocol-type-1.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaObjC/undefined-protocol-type-1.m b/test/SemaObjC/undefined-protocol-type-1.m new file mode 100644 index 0000000..572d55f --- /dev/null +++ b/test/SemaObjC/undefined-protocol-type-1.m @@ -0,0 +1,9 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +@protocol p1, p4; +@protocol p2 @end + +@interface T +- (T<p2, p3, p1, p4>*) meth; // expected-error {{cannot find protocol declaration for 'p3'}} +- (T<p2, p3, p1, p4>*) meth; // expected-error {{cannot find protocol declaration for 'p3'}} +@end |