blob: 1904b5db453d3ed6d25388d5744573ee306c37dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* 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
|