1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2// rdar://10633434 3 4@interface testClass 5@end 6 7@class NSArray; 8 9@implementation testClass 10 11static NSArray* prefixArray[] = @"BEGIN:", @"END:", @"VERSION:", @"N:", @"FN:", @"TEL;", @"TEL:", nil; // expected-error {{array initializer must be an initializer list}} \ 12 // expected-error {{expected identifier or '('}} \ 13 // expected-error {{expected ';' after top level declarator}} 14 15static NSString* prefixArray1[] = @"BEGIN:", @"END:", @"VERSION:", @"N:", @"FN:", @"TEL;", @"TEL:", nil; // expected-error {{unknown type name 'NSString'}} \ 16 // expected-error {{expected identifier or '('}} \ 17 // expected-error {{expected ';' after top level declarator}} 18 19static char* cArray[] = "BEGIN:", "END"; // expected-error {{array initializer must be an initializer list}} \ 20 // expected-error {{expected identifier or '('}} \ 21 // expected-error {{expected ';' after top level declarator}} 22 23@end 24