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