aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/no-signed-zeros-2.c
blob: 865a29f686311e9e9b8267e069d8552b0a69123d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test __NO_SIGNED_ZEROS__ is not defined with -fsigned-zeros.  */
/* { dg-do compile } */
/* { dg-options "-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

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