Alex Lorenz | 812012f | 2017-06-19 17:53:21 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify -Wno-objc-root-class %s |
| 2 | |
| 3 | @interface ClassA |
| 4 | |
| 5 | - (void)fileExistsAtPath:(int)x; |
| 6 | |
| 7 | @end |
| 8 | |
| 9 | @interface ClassB |
| 10 | |
| 11 | @end |
| 12 | |
| 13 | @implementation ClassB // expected-note {{implementation started here}} |
| 14 | |
| 15 | - (void) method:(ClassA *)mgr { // expected-note {{to match this '{'}} |
Alex Lorenz | 7f5313c | 2017-06-20 16:16:11 +0000 | [diff] [blame] | 16 | [mgr fileExistsAtPath:0 |
Alex Lorenz | 812012f | 2017-06-19 17:53:21 +0000 | [diff] [blame] | 17 | } // expected-error {{expected ']'}} |
| 18 | |
Alex Lorenz | f6fb345 | 2017-06-20 16:12:26 +0000 | [diff] [blame] | 19 | @implementation ClassC // \ |
| 20 | // expected-error {{missing '@end'}} \ |
| 21 | // expected-error {{expected '}'}} \ |
| 22 | // expected-warning {{cannot find interface declaration for 'ClassC'}} |
Alex Lorenz | 812012f | 2017-06-19 17:53:21 +0000 | [diff] [blame] | 23 | |
| 24 | @end |