From e47f7b13ac10a668cdd118fabe4bf0e337447073 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 18 Feb 2009 04:41:38 +0000 Subject: [PATCH] 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 --- test/SemaObjC/const-id.m | 8 -------- test/SemaObjC/exprs.m | 2 +- test/SemaObjC/message.m | 7 +++++++ 3 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 test/SemaObjC/const-id.m 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; +} + -- 2.40.0