brintos

brintos / llvm-project-archived public Read only

0
0
Text · 822 B · 76f8700 Raw
36 lines · plain
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}2 3// Without PCH4// RUN: %clang_cc1 -fsyntax-only -verify -include %s %s5 6// With PCH7// RUN: %clang_cc1 %s -emit-pch -o %t8// RUN: %clang_cc1 -emit-llvm-only -verify %s -include-pch %t -debug-info-kind=limited9 10// expected-no-diagnostics11 12#ifndef HEADER13#define HEADER14//===----------------------------------------------------------------------===//15// Header16 17typedef char BOOL;18 19@interface NSString20+ (BOOL)meth;21@end22 23static NSString * const cake = @"cake";24 25//===----------------------------------------------------------------------===//26#else27//===----------------------------------------------------------------------===//28 29@interface Foo {30  BOOL ivar;31}32@end33 34//===----------------------------------------------------------------------===//35#endif36