18 lines
441 B
C
18 lines
441 B
C
/* Test __NO_TRAPPING_MATH__ is not defined with -ftrapping-math. */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-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
|
|
|
|
#pragma GCC optimize "-ftrapping-math"
|
|
#ifdef __NO_TRAPPING_MATH__
|
|
#error "__NO_TRAPPING_MATH__ defined"
|
|
#endif
|