diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr59417.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr59417.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr59417.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr59417.c new file mode 100644 index 000000000..227c5d841 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr59417.c @@ -0,0 +1,39 @@ +/* PR tree-optimization/59417 */ + +int a, b, d; +short c; + +void +f (void) +{ + if (b) + { + int *e; + + if (d) + { + for (; b; a++) + lbl1: + d = 0; + + for (; d <= 1; d++) + { + int **q = &e; + for (**q = 0; **q <= 0; **q++) + d = 0; + } + } + } + + else + { + int t; + for (c = 0; c < 77; c++) + for (c = 0; c < 46; c++); + for (; t <= 0; t++) + lbl2: + ; + goto lbl1; + } + goto lbl2; +} |