aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}
+