2011-12-01 07:18:26 +08:00
|
|
|
// Test for rdar://10278815
|
|
|
|
|
|
|
|
// Without PCH
|
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -include %s %s
|
|
|
|
|
|
|
|
// With PCH
|
|
|
|
// RUN: %clang_cc1 %s -emit-pch -o %t
|
2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm-only -verify %s -include-pch %t -debug-info-kind=limited
|
2011-12-01 07:18:26 +08:00
|
|
|
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
|
2011-12-01 07:18:26 +08:00
|
|
|
#ifndef HEADER
|
|
|
|
#define HEADER
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Header
|
|
|
|
|
|
|
|
typedef char BOOL;
|
|
|
|
|
|
|
|
@interface NSString
|
|
|
|
+ (BOOL)meth;
|
|
|
|
@end
|
|
|
|
|
|
|
|
static NSString * const cake = @"cake";
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#else
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
@interface Foo {
|
|
|
|
BOOL ivar;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#endif
|