pass -verify in exprs.m, merge const-id.m into message.m

llvm-svn: 64886
This commit is contained in:
Chris Lattner 2009-02-18 04:41:38 +00:00
parent 2c4866057d
commit c96e0c4399
3 changed files with 8 additions and 9 deletions

View File

@ -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;
}

View File

@ -1,4 +1,4 @@
// RUN: clang %s -fsyntax-only
// RUN: clang %s -fsyntax-only -verify
// rdar://6597252
Class foo(Class X) {

View 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;
}