[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / x86-eval-method.c
blobe540a59528b6dd95206b205e2b21de265e8de916
1 // RUN: %clang_cc1 -fexperimental-strict-floating-point \
2 // RUN: -triple i386-pc-windows -target-cpu pentium4 -target-feature -sse \
3 // RUN: -emit-llvm -ffp-eval-method=source -o - -verify=warn %s
4 //
5 // RUN: %clang_cc1 -fexperimental-strict-floating-point \
6 // RUN: -triple i386-pc-windows -target-cpu pentium4 \
7 // RUN: -emit-llvm -ffp-eval-method=source -o - -verify=no-warn %s
9 // no-warn-no-diagnostics
11 float add1(float a, float b, float c) {
12 return a + b + c;
13 } // warn-warning{{setting the floating point evaluation method to `source` on a target without SSE is not supported}}
15 float add2(float a, float b, float c) {
16 #pragma clang fp eval_method(source)
17 return a + b + c;
18 } // warn-warning{{setting the floating point evaluation method to `source` on a target without SSE is not supported}}