diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-07-26 01:04:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 01:04:40 +0000 |
| commit | 31236f87444b39db2857c82e22cfdb15f1fd9a16 (patch) | |
| tree | 0035942affe068e2db91add75dc545a71aefeab2 /clang/test/SemaObjC/protocol-archane.m | |
| parent | 89026888ef6f80b5e271c3d08666001f998eca74 (diff) | |
| download | bcm5719-llvm-31236f87444b39db2857c82e22cfdb15f1fd9a16.tar.gz bcm5719-llvm-31236f87444b39db2857c82e22cfdb15f1fd9a16.zip | |
remove objc prefixes from these tests.
llvm-svn: 54085
Diffstat (limited to 'clang/test/SemaObjC/protocol-archane.m')
| -rw-r--r-- | clang/test/SemaObjC/protocol-archane.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/protocol-archane.m b/clang/test/SemaObjC/protocol-archane.m new file mode 100644 index 00000000000..3ace0ac3de0 --- /dev/null +++ b/clang/test/SemaObjC/protocol-archane.m @@ -0,0 +1,14 @@ +// RUN: clang -fsyntax-only -verify %s +// rdar://5986251 + +@protocol SomeProtocol +- (void) bar; +@end + +void foo(id x) { + bar((short<SomeProtocol>)x); // expected-error {{expected ')'}} expected-error {{to match this '('}} + bar((<SomeProtocol>)x); // expected-warning {{protocol qualifiers without 'id' is archaic}} + + [(<SomeProtocol>)x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}} +} + |

