[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / pch-no-hdrstop.cpp
blob3eb4c78ca91ca214af5e183c6b5b2c5b65fd0e94
1 // expected-no-diagnostics
2 // Create PCH with #pragma hdrstop processing with no #pragma hdrstop
3 // RUN: %clang_cc1 -verify -I %S -emit-pch -pch-through-hdrstop-create \
4 // RUN: -fms-extensions -o %t.pch -x c++-header %s
6 // Create the PCH object
7 // RUN: %clang_cc1 -verify -I %S -emit-obj -include-pch %t.pch \
8 // RUN: -pch-through-hdrstop-create -fms-extensions -o %t.obj -x c++ %s
10 // The use must still have a #pragma hdrstop
11 // RUN: %clang_cc1 -verify -I %S -emit-obj -include-pch %t.pch \
12 // RUN: -pch-through-hdrstop-use -fms-extensions -o %t.obj \
13 // RUN: -x c++ %S/Inputs/pch-no-hdrstop-use.cpp
15 #include "Inputs/pch-through1.h"
16 static int bar() { return 42; }
17 #include "Inputs/pch-through2.h"
18 int pch();