aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-02-04 02:28:18 +0000
committerSean Callanan <scallanan@apple.com>2012-02-04 02:28:18 +0000
commit1c594088415831e52db96ffd700cf79e274a8f91 (patch)
treefae58b6dae79f99ddd152dece7b2c0ca07f2bf5a /test/SemaObjCXX
parent279114c861d8746cedd1b0a991c0412054bcd53e (diff)
Fixed some testsuite problems introduced by my
last commit. Sorry for the outage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjCXX')
-rw-r--r--test/SemaObjCXX/debugger-cast-result-to-id.mm9
-rw-r--r--test/SemaObjCXX/unknown-anytype.mm2
2 files changed, 10 insertions, 1 deletions
diff --git a/test/SemaObjCXX/debugger-cast-result-to-id.mm b/test/SemaObjCXX/debugger-cast-result-to-id.mm
new file mode 100644
index 0000000000..9487a22b6c
--- /dev/null
+++ b/test/SemaObjCXX/debugger-cast-result-to-id.mm
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -fdebugger-support -fdebugger-cast-result-to-id -funknown-anytype -fsyntax-only -verify %s
+
+// rdar://problem/9416370
+namespace test0 {
+ void test(id x) {
+ if ([x foo]) {} // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
+ [x foo];
+ }
+}
diff --git a/test/SemaObjCXX/unknown-anytype.mm b/test/SemaObjCXX/unknown-anytype.mm
index 40954c85eb..b28b1355ef 100644
--- a/test/SemaObjCXX/unknown-anytype.mm
+++ b/test/SemaObjCXX/unknown-anytype.mm
@@ -4,6 +4,6 @@
namespace test0 {
void test(id x) {
if ([x foo]) {} // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
- [x foo];
+ [x foo]; // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
}
}