• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Test for rdar://10278815
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
17typedef char BOOL;
18
19@interface NSString
20+ (BOOL)meth;
21@end
22
23static NSString * const cake = @"cake";
24
25//===----------------------------------------------------------------------===//
26#else
27//===----------------------------------------------------------------------===//
28
29@interface Foo {
30  BOOL ivar;
31}
32@end
33
34//===----------------------------------------------------------------------===//
35#endif
36