diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2016-02-28 17:41:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2016-02-28 09:41:45 -0800 |
commit | cdc1a2c805460e742bda4581c3d732c3e27bab15 (patch) | |
tree | 980713c7cc6c4ee79d57783fbabd80f248253173 /gcc | |
parent | 33505bcf10452fe4bdb96c573805251753f06dc5 (diff) | |
download | gcc-cdc1a2c805460e742bda4581c3d732c3e27bab15.zip gcc-cdc1a2c805460e742bda4581c3d732c3e27bab15.tar.gz gcc-cdc1a2c805460e742bda4581c3d732c3e27bab15.tar.bz2 |
Add a test for PR tree-optimization/69989
PR tree-optimization/69989
* gcc.dg/torture/pr69989.c: New test.
From-SVN: r233792
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; + } +} |