Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/torture/inf-compare-8.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do run } */ | |
2 /* { dg-add-options ieee } */ | |
3 /* { dg-require-effective-target fenv_exceptions } */ | |
4 | |
5 #include <fenv.h> | |
6 | |
7 extern void abort (void); | |
8 extern void exit (int); | |
9 | |
10 volatile double x = __builtin_nan (""); | |
11 volatile int i; | |
12 | |
13 int | |
14 main (void) | |
15 { | |
16 i = x != -__builtin_inf (); | |
17 if (i != 1 || fetestexcept (FE_INVALID)) | |
18 abort (); | |
19 } |