pass -verify in exprs.m, merge const-id.m into message.m
llvm-svn: 64886
This commit is contained in:
parent
2c4866057d
commit
c96e0c4399
|
@ -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;
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang %s -fsyntax-only
|
||||
// RUN: clang %s -fsyntax-only -verify
|
||||
|
||||
// rdar://6597252
|
||||
Class foo(Class X) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue