+++ /dev/null
-// 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;
-}
-
-// RUN: clang %s -fsyntax-only
+// RUN: clang %s -fsyntax-only -verify
// rdar://6597252
Class foo(Class X) {
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;
+}
+