From: H.J. Lu Date: Sun, 28 Feb 2016 17:41:45 +0000 (+0000) Subject: Add a test for PR tree-optimization/69989 X-Git-Tag: basepoints/gcc-7~707 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdc1a2c805460e742bda4581c3d732c3e27bab15;p=thirdparty%2Fgcc.git Add a test for PR tree-optimization/69989 PR tree-optimization/69989 * gcc.dg/torture/pr69989.c: New test. From-SVN: r233792 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 835ee2bf1389..e7ad0db2c29f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-02-28 H.J. Lu + + PR tree-optimization/69989 + * gcc.dg/torture/pr69989.c: New test. + 2016-02-28 Eric Botcazou * 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 000000000000..ada99f19eae5 --- /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; + } +}