summaryrefslogtreecommitdiff
path: root/test/SemaObjC/category-1.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-03-11 17:10:51 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-03-11 17:10:51 +0000
commitba4fc23a3ad7629b353adc93bfab147b988683c2 (patch)
tree01401f38bc5166e632005c061f01287937b5f48e /test/SemaObjC/category-1.m
parent22cc9b0c3b3413d3b8e81ef06415560c8a5e795e (diff)
downloadclang-ba4fc23a3ad7629b353adc93bfab147b988683c2.tar.gz
Objective-C. Diagose use of undefined protocols
when a class adopts a protocol that inherits from undefined protocols. // rdar://16111182 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/category-1.m')
-rw-r--r--test/SemaObjC/category-1.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaObjC/category-1.m b/test/SemaObjC/category-1.m
index 3c2f7d0032..89ac550578 100644
--- a/test/SemaObjC/category-1.m
+++ b/test/SemaObjC/category-1.m
@@ -2,7 +2,8 @@
@interface MyClass1 @end
-@protocol p1,p2,p3;
+@protocol p1,p2,p3; // expected-note {{protocol 'p1' has no definition}} \
+ // expected-note {{protocol 'p2' has no definition}}
@interface MyClass1 (Category1) <p1> // expected-warning {{cannot find protocol definition for 'p1'}} expected-note {{previous definition is here}}
@end