diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr69989.c | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 835ee2b..e7ad0db 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-02-28 H.J. Lu <hongjiu.lu@intel.com> + + PR tree-optimization/69989 + * gcc.dg/torture/pr69989.c: New test. + 2016-02-28 Eric Botcazou <ebotcazou@adacore.com> * gcc.target/i386/stack-realign-win.c: New test. diff --git a/gcc/testsuite/gcc.dg/torture/pr69989.c b/gcc/testsuite/gcc.dg/torture/pr69989.c new file mode 100644 index 0000000..ada99f1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr69989.c @@ -0,0 +1,23 @@ +/* { dg-do compile } */ + +extern int a, b, d; +extern char c[]; +void +fn1 (void) +{ + for (;;) + { + if (b) + { +LABEL_T5T5T: + for (; d < a; d++) + c[d] = 6; + } + break; + } + if (a > 6) + { + a = 4; + goto LABEL_T5T5T; + } +} |