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

19 lines
351 B
C

$NetBSD$
--- gcc/testsuite/gcc.dg/pr49619.c.orig Wed May 21 19:48:58 2014
+++ gcc/testsuite/gcc.dg/pr49619.c
@@ -0,0 +1,13 @@
+/* PR rtl-optimization/49619 */
+/* { dg-do compile } */
+/* { dg-options "-O -fno-tree-fre" } */
+
+extern int a, b;
+
+void
+foo (int x)
+{
+ a = 2;
+ b = 0;
+ b = (a && ((a = 1, 0 >= b) || (short) (x + (b & x))));
+}