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