aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr114787.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr114787.c')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr114787.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr114787.c b/gcc/testsuite/gcc.dg/torture/pr114787.c
new file mode 100644
index 00000000000..1c7294bee7b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr114787.c
@@ -0,0 +1,27 @@
+/* { dg-do run } */
+
+int a, b, c, d, e = -1, f, g, h, j, k, n, o, p;
+int main() {
+ int i, l = 2, m;
+ for (b = 0; b < 1; b++)
+ l = 0;
+ for (; a >= 0; a--)
+ for (m = 3; m; m--) {
+ k = g;
+ i = 0;
+ for (; i < 1; i++)
+ for (; f < 1; f++)
+ h = g;
+ n = 2 & ((e ^ d) | 1) * j;
+ o = ~(e & n);
+ q:
+ if (c <= e)
+ return 0;
+ e = o;
+ }
+ p = l;
+ l = 0;
+ if (p)
+ goto q;
+ return 0;
+}