Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/no-trapping-math-1.c
2023-03-06 14:48:14 +01:00

17 lines
448 B
C

/* Test __NO_TRAPPING_MATH__ is defined with -fno-trapping-math. */
/* { dg-do compile } */
/* { dg-options "-fno-trapping-math" } */
#ifndef __NO_TRAPPING_MATH__
#error "__NO_TRAPPING_MATH__ not defined"
#endif
#pragma GCC optimize "-ftrapping-math"
#ifdef __NO_TRAPPING_MATH__
#error "__NO_TRAPPING_MATH__ defined"
#endif
#pragma GCC optimize "-fno-trapping-math"
#ifndef __NO_TRAPPING_MATH__
#error "__NO_TRAPPING_MATH__ not defined"
#endif