1 // Test for rdar://10278815 2 3 // Without PCH 4 // RUN: %clang_cc1 -fsyntax-only -verify -include %s %s 5 6 // With PCH 7 // RUN: %clang_cc1 %s -emit-pch -o %t 8 // RUN: %clang_cc1 -emit-llvm-only -verify %s -include-pch %t -g 9 10 #ifndef HEADER 11 #define HEADER 12 //===----------------------------------------------------------------------===// 13 // Header 14 15 typedef char BOOL; 16 17 @interface NSString 18 + (BOOL)meth; 19 @end 20 21 static NSString * const cake = @"cake"; 22 23 //===----------------------------------------------------------------------===// 24 #else 25 //===----------------------------------------------------------------------===// 26 27 @interface Foo { 28 BOOL ivar; 29 } 30 @end 31 32 //===----------------------------------------------------------------------===// 33 #endif 34