[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / rounding-math.cpp
blobc0ed9fce88249d5c9a400f61d009a7261b3013a8
1 // RUN: %clang_cc1 -S -emit-llvm -triple i386-linux -Wno-unknown-pragmas -frounding-math %s -o - | FileCheck %s
3 constexpr float func_01(float x, float y) {
4 return x + y;
7 float V1 = func_01(1.0F, 0x0.000001p0F);
8 float V2 = 1.0F + 0x0.000001p0F;
9 float V3 = func_01(1.0F, 2.0F);
11 // CHECK: @V1 = {{.*}}global float 1.000000e+00, align 4
12 // CHECK: @V2 = {{.*}}global float 1.000000e+00, align 4
13 // CHECK: @V3 = {{.*}}global float 3.000000e+00, align 4