S/390: Commit forgotten test for r275336
authorIlya Leoshkevich <iii@gcc.gnu.org>
Tue, 3 Sep 2019 10:27:04 +0000 (10:27 +0000)
committerIlya Leoshkevich <iii@gcc.gnu.org>
Tue, 3 Sep 2019 10:27:04 +0000 (10:27 +0000)
gcc/testsuite/ChangeLog:

2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>

* gcc.target/s390/sigfpe-eh.c: Forgotten test.

From-SVN: r275337

gcc/testsuite/gcc.target/s390/sigfpe-eh.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/s390/sigfpe-eh.c b/gcc/testsuite/gcc.target/s390/sigfpe-eh.c
new file mode 100644 (file)
index 0000000..52b0bf3
--- /dev/null
@@ -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 ();
+}