gcc/testsuite/gcc.dg/no-signed-zeros-2.c
raw| 1 | /* Test __NO_SIGNED_ZEROS__ is not defined with -fsigned-zeros. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fsigned-zeros" } */ |
| 4 | |
| 5 | #ifdef __NO_SIGNED_ZEROS__ |
| 6 | #error "__NO_SIGNED_ZEROS__ defined" |
| 7 | #endif |
| 8 | |
| 9 | #pragma GCC optimize "-fno-signed-zeros" |
| 10 | #ifndef __NO_SIGNED_ZEROS__ |
| 11 | #error "__NO_SIGNED_ZEROS__ not defined" |
| 12 | #endif |
| 13 | |
| 14 | #pragma GCC optimize "-fsigned-zeros" |
| 15 | #ifdef __NO_SIGNED_ZEROS__ |
| 16 | #error "__NO_SIGNED_ZEROS__ defined" |
| 17 | #endif |