Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr43419.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do run } */ |
2 /* { dg-options "-O1" } */ | |
3 /* { dg-add-options ieee } */ | |
4 #include <math.h> | |
5 | |
6 extern void abort (void); | |
7 void __attribute__((noinline)) f (double x) | |
8 { | |
9 double pluszero = pow (x, 0.5); | |
10 double minuszero = sqrt (x); | |
11 if (signbit (pluszero) == signbit (minuszero)) | |
12 abort (); | |
13 } | |
14 | |
15 int main(void) | |
16 { | |
17 f (-0.0); | |
18 return 0; | |
19 } |