commit | f7683306d50ae745698b6afa1d3454ca87bb4b4c | [log] [tgz] |
---|---|---|
author | Steve Naroff <snaroff@apple.com> | Mon Sep 22 10:28:57 2008 +0000 |
committer | Steve Naroff <snaroff@apple.com> | Mon Sep 22 10:28:57 2008 +0000 |
tree | b484511994a13e77205a5fc3b82bb4c5df67065c | |
parent | b3d58a21d3f2df1dc796a6e496902a5346ebcabb [diff] [blame] |
Fix http://llvm.org/bugs/show_bug.cgi?id=2816. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56433 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/protocol-archane.m b/test/SemaObjC/protocol-archane.m index 3ace0ac..19736cd 100644 --- a/test/SemaObjC/protocol-archane.m +++ b/test/SemaObjC/protocol-archane.m
@@ -12,3 +12,13 @@ [(<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