diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52073.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52073.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52073.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52073.c new file mode 100644 index 000000000..19056e1ea --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52073.c @@ -0,0 +1,28 @@ +/* PR tree-optimization/52073 */ + +int a, b, c, d, e, f; + +void +foo (int x) +{ + e = 1; + for (;;) + { + int g = c; + if (x) + { + if (e) + continue; + while (a) + --f; + } + else + for (b = 5; b; b--) + { + d = g; + g = 0 == d; + } + if (!g) + x = 0; + } +} |