From 70b766b25a484e847ad15a51a83e2f018a7b0171 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Tue, 3 Sep 2019 10:27:04 +0000 Subject: [PATCH] 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 --- gcc/testsuite/gcc.target/s390/sigfpe-eh.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/gcc.target/s390/sigfpe-eh.c 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 (); +} -- 2.30.2