[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / pending-ids.m
blob76f87003618244f973d85a2631428ea36b2aca4f
1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
3 // Without PCH
4 // RUN: %clang_cc1 -fsyntax-only -verify -include %s %s
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
10 // expected-no-diagnostics
12 #ifndef HEADER
13 #define HEADER
14 //===----------------------------------------------------------------------===//
15 // Header
17 typedef char BOOL;
19 @interface NSString
20 + (BOOL)meth;
21 @end
23 static NSString * const cake = @"cake";
25 //===----------------------------------------------------------------------===//
26 #else
27 //===----------------------------------------------------------------------===//
29 @interface Foo {
30   BOOL ivar;
32 @end
34 //===----------------------------------------------------------------------===//
35 #endif