]> granicus.if.org Git - clang/commitdiff
pass -verify in exprs.m, merge const-id.m into message.m
authorChris Lattner <sabre@nondot.org>
Wed, 18 Feb 2009 04:41:38 +0000 (04:41 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Feb 2009 04:41:38 +0000 (04:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64886 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/const-id.m [deleted file]
test/SemaObjC/exprs.m
test/SemaObjC/message.m

diff --git a/test/SemaObjC/const-id.m b/test/SemaObjC/const-id.m
deleted file mode 100644 (file)
index 9087e4c..0000000
+++ /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;
-}
-
index d675865eb53bc511fa0ac6fd3010994bc42e80f0..cb7f723f39632351d950c52d1bff813849468302 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang %s -fsyntax-only
+// RUN: clang %s -fsyntax-only -verify
 
 // rdar://6597252
 Class foo(Class X) {
index 274885d37c55628920cd8bf8f5e94d2e8273746f..f961e3587049d919b6cdd60432a401d4b4767c37 100644 (file)
@@ -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;
+}
+