diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-02-28 22:36:31 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-02-28 22:36:31 +0000 |
| commit | d838bba59b69265933e71cda8532cd5bfc2bf24a (patch) | |
| tree | 1ecf9848d54f1e8b4511b302a9f54ff9fb7bd114 /clang/test/SemaObjC | |
| parent | 7e0db2a24b9e1c8c34b08015f7b26be15e08258a (diff) | |
| download | bcm5719-llvm-d838bba59b69265933e71cda8532cd5bfc2bf24a.tar.gz bcm5719-llvm-d838bba59b69265933e71cda8532cd5bfc2bf24a.zip | |
objective-C: clang, following gcc, warns on
use of stand-alone protocol as type and uses
id<proto>. Modify warning to say what compiler
is doing. // rdar//13158394
llvm-svn: 176303
Diffstat (limited to 'clang/test/SemaObjC')
| -rw-r--r-- | clang/test/SemaObjC/protocol-archane.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaObjC/protocol-archane.m b/clang/test/SemaObjC/protocol-archane.m index 49c9851122e..9d1526d6937 100644 --- a/clang/test/SemaObjC/protocol-archane.m +++ b/clang/test/SemaObjC/protocol-archane.m @@ -8,9 +8,9 @@ void bar(); void foo(id x) { bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-note {{to match this '('}} - bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}} + bar((<SomeProtocol>)x); // expected-warning {{property has no object type specified; defaults to qualified 'id'}} - [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}} + [(<SomeProtocol>)x bar]; // expected-warning {{property has no object type specified; defaults to qualified 'id'}} } @protocol MyProtocol @@ -37,6 +37,6 @@ Class <SomeProtocol> UnfortunateGCCExtension; @protocol Broken @end @interface Crash @end @implementation Crash -- (void)crashWith:(<Broken>)a { // expected-warning {{protocol qualifiers without 'id' is archaic}} +- (void)crashWith:(<Broken>)a { // expected-warning {{property has no object type specified; defaults to qualified 'id'}} } @end |

