[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / pch-through3b.cpp
blob2a7695a7098a74a55bb0548912c43296644d3ab3
1 // RUN: %clang_cc1 -I %S -emit-pch \
2 // RUN: -pch-through-header=Inputs/pch-through1.h -o %t.s3bt1 %s
4 // RUN: %clang_cc1 -I %S -include-pch %t.s3bt1 \
5 // RUN: -pch-through-header=Inputs/pch-through1.h \
6 // RUN: %S/Inputs/pch-through-use3b.cpp 2>&1 | FileCheck %s
8 //CHECK: warning: definition of macro 'AFOO' does not match definition in
9 //CHECK-SAME: precompiled header
10 //CHECK: warning: definition of macro 'BFOO' does not match definition in
11 //CHECK-SAME: precompiled header
13 #define AFOO 0
14 #include "Inputs/pch-through1.h"