summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/protocol-archane.m
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-26 01:04:40 +0000
committerChris Lattner <sabre@nondot.org>2008-07-26 01:04:40 +0000
commit31236f87444b39db2857c82e22cfdb15f1fd9a16 (patch)
tree0035942affe068e2db91add75dc545a71aefeab2 /clang/test/SemaObjC/protocol-archane.m
parent89026888ef6f80b5e271c3d08666001f998eca74 (diff)
downloadbcm5719-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.m14
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}}
+}
+
OpenPOWER on IntegriCloud