[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / Sema / x86_64-eval-method.c
blobfe4368a42ca124814fe5b2d21acd99b5b0b0f6a3
1 // RUN: %clang_cc1 -fexperimental-strict-floating-point \
2 // RUN: -triple x86_64-linux-gnu -target-feature -sse -emit-llvm \
3 // RUN: -o - -verify=warn %s
4 //
5 // RUN: %clang_cc1 -fexperimental-strict-floating-point \
6 // RUN: -triple x86_64-linux-gnu -emit-llvm -o - -verify=no-warn %s
8 // no-warn-no-diagnostics
10 float add2(float a, float b, float c) {
11 #pragma clang fp eval_method(source)
12 return a + b + c;
13 } // warn-warning{{setting the floating point evaluation method to `source` on a target without SSE is not supported}}