15 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3@protocol NSObject4@end5 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 recognized10// placeholders somehow. However, we're content with not generating11// 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, protocol, or implementation}} expected-error {{missing '@end'}}15