pkgsrc-ng/lang/gcc45/patches/patch-gcc_testsuite_gcc.dg_dfp_pr52140.c
Lionel Sambuc 612ad0a18c lang/gcc45
2016-01-22 00:09:29 +01:00

16 lines
306 B
C

$NetBSD$
--- gcc/testsuite/gcc.dg/dfp/pr52140.c.orig Wed May 21 19:48:58 2014
+++ gcc/testsuite/gcc.dg/dfp/pr52140.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+/* This used to result in an ICE. */
+
+int
+foo (_Decimal64 x, _Decimal64 y)
+{
+ return (x < y) || (x > y);
+}