diff options
author | Steve Naroff <snaroff@apple.com> | 2008-09-22 10:28:57 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-09-22 10:28:57 +0000 |
commit | cd5e782bce0f1c93757f170a80da3d3a69abee50 (patch) | |
tree | b8e5f5b2f12f8d129269753f918500b8dbe9e6bb /clang/test/SemaObjC/protocol-archane.m | |
parent | 73a5406d246185d79cd3448eed94244c2092a48f (diff) | |
download | bcm5719-llvm-cd5e782bce0f1c93757f170a80da3d3a69abee50.tar.gz bcm5719-llvm-cd5e782bce0f1c93757f170a80da3d3a69abee50.zip |
Fix http://llvm.org/bugs/show_bug.cgi?id=2816.
llvm-svn: 56433
Diffstat (limited to 'clang/test/SemaObjC/protocol-archane.m')
-rw-r--r-- | clang/test/SemaObjC/protocol-archane.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/protocol-archane.m b/clang/test/SemaObjC/protocol-archane.m index 3ace0ac3de0..19736cdf505 100644 --- a/clang/test/SemaObjC/protocol-archane.m +++ b/clang/test/SemaObjC/protocol-archane.m @@ -12,3 +12,13 @@ void foo(id x) { [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}} } +@protocol MyProtocol +- (void)doSomething; +@end + +@interface MyClass +- (void)m1:(id <MyProtocol> const)arg1; + +// FIXME: provide a better diagnostic (no typedef). +- (void)m2:(id <MyProtocol> short)arg1; // expected-error {{'short typedef' is invalid}} +@end
\ No newline at end of file |