1// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 %s -fsyntax-only -verify 2// rdar://5957506 3 4@interface NSWhatever : 5NSObject // expected-error {{cannot find interface declaration for 'NSObject'}} 6<NSCopying> // expected-error {{no type or protocol named '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 22void 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