clang/test/FixIt/fixit-objc-missing-method-impl.m
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | // RUN: cp %s %t |
| 3 | // RUN: not %clang_cc1 -pedantic -Werror -fixit -x objective-c %t |
| 4 | // RUN: %clang_cc1 -pedantic -Werror -x objective-c %t |
| 5 | |
| 6 | __attribute__((objc_root_class)) |
| 7 | @interface NSObject |
| 8 | @end |
| 9 | |
| 10 | @interface Foo : NSObject |
| 11 | - (void)fooey; // expected-note{{method 'fooey' declared here}} |
| 12 | @end |
| 13 | |
| 14 | @implementation Foo // expected-warning{{method definition for 'fooey' not found}} |
| 15 | @end |