1  /* Test __NO_TRAPPING_MATH__ is not defined with -ftrapping-math.  */
       2  /* { dg-do compile } */
       3  /* { dg-options "-ftrapping-math" } */
       4  
       5  #ifdef __NO_TRAPPING_MATH__
       6  #error "__NO_TRAPPING_MATH__ defined"
       7  #endif
       8  
       9  #pragma GCC optimize "-fno-trapping-math"
      10  #ifndef __NO_TRAPPING_MATH__
      11  #error "__NO_TRAPPING_MATH__ not defined"
      12  #endif
      13  
      14  #pragma GCC optimize "-ftrapping-math"
      15  #ifdef __NO_TRAPPING_MATH__
      16  #error "__NO_TRAPPING_MATH__ defined"
      17  #endif