| 1 |
// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} |
| 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 -debug-info-kind=limited |
| 9 |
|
| 10 |
// expected-no-diagnostics |
| 11 |
|
| 12 |
#ifndef HEADER |
| 13 |
#define HEADER |
| 14 |
//===----------------------------------------------------------------------===// |
| 15 |
// Header |
| 16 |
|
| 17 |
typedef char BOOL; |
| 18 |
|
| 19 |
@interface NSString |
| 20 |
+ (BOOL)meth; |
| 21 |
@end |
| 22 |
|
| 23 |
static NSString * const cake = @"cake"; |
| 24 |
|
| 25 |
//===----------------------------------------------------------------------===// |
| 26 |
#else |
| 27 |
//===----------------------------------------------------------------------===// |
| 28 |
|
| 29 |
@interface Foo { |
| 30 |
BOOL ivar; |
| 31 |
} |
| 32 |
@end |
| 33 |
|
| 34 |
//===----------------------------------------------------------------------===// |
| 35 |
#endif |