Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/pr95171.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gcc.dg/pr95171.c Mon May 25 07:50:57 2020 +0900 @@ -0,0 +1,18 @@ +/* { dg-do compile } */ +/* { dg-options "-fexceptions -ffinite-math-only -fnon-call-exceptions" } */ + +inline double __attribute__ ((always_inline)) +w9 (int q2) +{ + return __builtin_fabs (__builtin_nan ("")) > 0.0 ? 1.0 : q2 / 1.0; +} + +double __attribute__ ((optimize ("-fipa-cp"))) +o7 (int iz) +{ + int rj[1]; + + (void) rj; + + return w9 (iz); +}