| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | @protocol NSObject |
| 4 | @end |
| 5 | |
| 6 | @protocol <#protocol name#> <NSObject> // expected-error {{editor placeholder in source file}} |
| 7 | // expected-note@-1 {{protocol started here}} |
| 8 | |
| 9 | // FIXME: We could do much better with this, if we recognized |
| 10 | // placeholders somehow. However, we're content with not generating |
| 11 | // bogus 'archaic' warnings with bad location info. |
| 12 | <#methods#> // expected-error {{editor placeholder in source file}} |
| 13 | |
| 14 | @end // expected-error {{prefix attribute must be followed by an interface or protocol}} expected-error {{missing '@end'}} |
| 15 | |