// RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions -Wno-objc-root-class %s
// rdar://6124613
void
// <rdar://problem/7495713>
// This previously triggered a crash because the class has not been defined.
// <rdar://problem/7881045>
// This previously triggered a crash because a ';' was expected after the @throw statement.
void
// <rdar://problem/10415026>
@class NSView;
@end // expected-error {{'@end' must appear in an Objective-C context}}
@class ForwardBase;
// expected-error {{Objective-C declarations may only appear in global scope}}
@end