aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/no-signed-zeros-1.c
blob: 3b9cd71c84fc8ce88877d9efb1d5b00568d1566a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test __NO_SIGNED_ZEROS__ is defined with -fno-signed-zeros.  */
/* { dg-do compile } */
/* { dg-options "-fno-signed-zeros" } */

#ifndef __NO_SIGNED_ZEROS__
#error "__NO_SIGNED_ZEROS__ not defined"
#endif

#pragma GCC optimize "-fsigned-zeros"
#ifdef __NO_SIGNED_ZEROS__
#error "__NO_SIGNED_ZEROS__ defined"
#endif

#pragma GCC optimize "-fno-signed-zeros"
#ifndef __NO_SIGNED_ZEROS__
#error "__NO_SIGNED_ZEROS__ not defined"
#endif