aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-18 04:41:38 +0000
committerChris Lattner <sabre@nondot.org>2009-02-18 04:41:38 +0000
commite47f7b13ac10a668cdd118fabe4bf0e337447073 (patch)
tree310277a1770cf21b3a98ff0f6d92603da7fc6b98
parenta119a3b07372888a2f5b9ec693c52daae7c0f522 (diff)
pass -verify in exprs.m, merge const-id.m into message.m
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64886 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaObjC/const-id.m8
-rw-r--r--test/SemaObjC/exprs.m2
-rw-r--r--test/SemaObjC/message.m7
3 files changed, 8 insertions, 9 deletions
diff --git a/test/SemaObjC/const-id.m b/test/SemaObjC/const-id.m
deleted file mode 100644
index 9087e4ce7d..0000000000
--- a/test/SemaObjC/const-id.m
+++ /dev/null
@@ -1,8 +0,0 @@
-// RUN: clang %s -verify -fsyntax-only
-
-int main() {
- const id foo;
- [foo bar]; // expected-warning {{method '-bar' not found (return type defaults to 'id')}}
- return 0;
-}
-
diff --git a/test/SemaObjC/exprs.m b/test/SemaObjC/exprs.m
index d675865eb5..cb7f723f39 100644
--- a/test/SemaObjC/exprs.m
+++ b/test/SemaObjC/exprs.m
@@ -1,4 +1,4 @@
-// RUN: clang %s -fsyntax-only
+// RUN: clang %s -fsyntax-only -verify
// rdar://6597252
Class foo(Class X) {
diff --git a/test/SemaObjC/message.m b/test/SemaObjC/message.m
index 274885d37c..f961e35870 100644
--- a/test/SemaObjC/message.m
+++ b/test/SemaObjC/message.m
@@ -68,3 +68,10 @@ extern Class NSClassFromObject(id object);
int f0(I0 *ob) {
[ ob nonVararg: 0, 1, 2]; // expected-error {{too many arguments to method call}}
}
+
+int f2() {
+ const id foo;
+ [foo bar]; // expected-warning {{method '-bar' not found (return type defaults to 'id')}}
+ return 0;
+}
+