Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / severe-syntax-error.m
blobf8218d06db9bfc4fda3c3f7789afe3be37beb603
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 @interface testClass
4 @end
6 @class NSArray;
8 @implementation testClass
10 static NSArray* prefixArray[] = @"BEGIN:", @"END:", @"VERSION:", @"N:", @"FN:", @"TEL;", @"TEL:", nil; // expected-error {{array initializer must be an initializer list}} \
11                                                                                                        // expected-error {{expected identifier or '('}} \
12                                                                                                        // expected-error {{expected ';' after top level declarator}}
14 static NSString* prefixArray1[] = @"BEGIN:", @"END:", @"VERSION:", @"N:", @"FN:", @"TEL;", @"TEL:", nil; // expected-error {{unknown type name 'NSString'}} \
15                                                                                                          // expected-error {{expected identifier or '('}} \
16                                                                                                          // expected-error {{expected ';' after top level declarator}}
18 static char* cArray[] = "BEGIN:", "END";        // expected-error {{array initializer must be an initializer list}} \
19                                                 // expected-error {{expected identifier or '('}} \
20                                                 // expected-error {{expected ';' after top level declarator}}
22 @end