From: Ilya Leoshkevich Date: Tue, 3 Sep 2019 10:27:04 +0000 (+0000) Subject: S/390: Commit forgotten test for r275336 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70b766b25a484e847ad15a51a83e2f018a7b0171;p=gcc.git S/390: Commit forgotten test for r275336 gcc/testsuite/ChangeLog: 2019-09-03 Ilya Leoshkevich * gcc.target/s390/sigfpe-eh.c: Forgotten test. From-SVN: r275337 --- diff --git a/gcc/testsuite/gcc.target/s390/sigfpe-eh.c b/gcc/testsuite/gcc.target/s390/sigfpe-eh.c new file mode 100644 index 00000000000..52b0bf39d9e --- /dev/null +++ b/gcc/testsuite/gcc.target/s390/sigfpe-eh.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-march=z196 -O2 -fexceptions -fnon-call-exceptions" } */ + +extern float f (void); +extern float g (void); + +float h (float x, float y) +{ + return x < y ? f () : g (); +}