1 // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions -Wno-objc-root-class %s
5 void *p = @xyzzy; // expected-error {{unexpected '@' in program}}
8 // This previously triggered a crash because the class has not been defined.
9 @implementation RDar7495713 (rdar_7495713_cat) // expected-error{{cannot find interface declaration for 'RDar7495713'}}
11 __PRETTY_FUNCTION__; // expected-warning{{expression result unused}}
15 // This previously triggered a crash because a ';' was expected after the @throw statement.
17 @throw (id)0 // expected-error{{expected ';' after @throw}}
21 @implementation IBFillView(IBFillViewIntegration) // expected-error {{cannot find interface declaration for 'IBFillView'}}
22 - (NSView *)ibDesignableContentView {
23 [Cake lie]; // expected-error {{undeclared}}
33 @implementation I // expected-note {{started here}}
36 @implementation I2 // expected-error {{missing '@end'}}
40 @end // expected-error {{'@end' must appear in an Objective-C context}}
43 @implementation SomeI : ForwardBase // expected-error {{cannot find interface declaration for 'ForwardBase', superclass of 'SomeI'}} \
44 // expected-warning {{cannot find interface declaration for 'SomeI'}}
49 __attribute__((unavailable)) @interface I4 @end // expected-error {{Objective-C declarations may only appear in global scope}}