[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / determinism.cpp
blobea52971e3b26b016bd3a30baeab8cc5a2c98df70
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
4 // RUN: %clang_cc1 -x c++-header %s -emit-pch -o %t/a.pch
5 // RUN: %clang_cc1 -x c++-header %s -emit-pch -o %t/b.pch
6 // RUN: cmp %t/a.pch %t/b.pch
8 #pragma float_control(push)
9 double fp_control_0(double x) {
10 return -x + x;
13 double fp_control_1(double x) {
14 #pragma float_control(precise, on)
15 return -x + x;
18 double fp_control_2(double x) {
19 #pragma float_control(precise, off)
20 return -x + x;
22 #pragma float_control(pop)