// RUN: %clang_cc1 -verify -fsyntax-only -Wno-objc-root-class %s
// FIXME: Why isn't this supported? Seems useful for availability attributes at
// the very least.
@class B; // expected-error {{prefix attribute must be followed by an interface, protocol, or implementation}}
@protocol P0;
@protocol P1
@end
;
EXP class C2 ; // expected-warning {{attribute 'visibility' is ignored, place it after "class" to apply attribute to type declaration}}
// expected-error {{postfix attributes are not allowed on Objective-C directives, place them in front of '@interface'}}
EXP
// expected-error-re {{postfix attributes are not allowed on Objective-C directives{{$}}}}
EXP
@class EXP OC; // expected-error-re {{postfix attributes are not allowed on Objective-C directives{{$}}}}
EXP @class OC2; // expected-error {{prefix attribute must be followed by an interface, protocol, or implementation}}
// expected-error {{postfix attributes are not allowed on Objective-C directives, place them in front of '@protocol'}}
EXP @protocol P2 @end