2010-11-20 01:10:50 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
2017-04-19 16:58:56 +08:00
|
|
|
@protocol NSObject
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol <#protocol name#> <NSObject> // expected-error {{editor placeholder in source file}}
|
|
|
|
// expected-note@-1 {{protocol started here}}
|
|
|
|
|
2010-11-20 01:10:50 +08:00
|
|
|
// FIXME: We could do much better with this, if we recognized
|
|
|
|
// placeholders somehow. However, we're content with not generating
|
|
|
|
// bogus 'archaic' warnings with bad location info.
|
2017-04-19 16:58:56 +08:00
|
|
|
<#methods#> // expected-error {{editor placeholder in source file}}
|
2010-11-20 01:10:50 +08:00
|
|
|
|
2019-04-12 01:55:30 +08:00
|
|
|
@end // expected-error {{prefix attribute must be followed by an interface, protocol, or implementation}} expected-error {{missing '@end'}}
|