llvm-for-llvmta/tools/clang/test/CodeGen/no-junk-ftrunc.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

15 lines
442 B
C

// RUN: %clang_cc1 -S -fno-strict-float-cast-overflow %s -emit-llvm -o - | FileCheck %s --check-prefix=NOSTRICT
// NOSTRICT-LABEL: main
// NOSTRICT: attributes #0 = {{.*}}"strict-float-cast-overflow"="false"{{.*}}
// The workaround attribute is not applied by default.
// RUN: %clang_cc1 -S %s -emit-llvm -o - | FileCheck %s --check-prefix=STRICT
// STRICT-LABEL: main
// STRICT-NOT: strict-float-cast-overflow
int main() {
return 0;
}