1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi %s -fsyntax-only -verify 2 // rdar://5957506 3 4 @interface NSWhatever : 5 NSObject // expected-error {{cannot find interface declaration for 'NSObject'}} 6 <NSCopying> // expected-error {{cannot find protocol declaration for 'NSCopying'}} 7 @end 8 9 10 // rdar://6095245 11 @interface A 12 { 13 int x 14 } // expected-error {{expected ';' at end of declaration list}} 15 @end 16 17 18 // rdar://4304469 19 @interface INT1 20 @end 21 22 void test2() { 23 // rdar://6827200 24 INT1 b[3]; // expected-error {{array of interface 'INT1' is invalid (probably should be an array of pointers)}} 25 INT1 *c = &b[0]; 26 ++c; 27 } 28 29 30 // rdar://6611778 31 @interface FOO // expected-note {{previous definition is here}} 32 - (void)method; 33 @end 34 35 @interface FOO // expected-error {{duplicate interface definition for class 'FOO'}} 36 - (void)method2; 37 @end 38 39