From: Alan Modra Date: Sat, 14 Jan 2017 13:29:29 +0000 (+1030) Subject: Testcase from pr72749 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afaecc23b57e1d6827f071a4d560ca57770b2e25;p=gcc.git Testcase from pr72749 PR target/72749 * gcc.c-torture/compile/pr72749.c: New test. From-SVN: r244466 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02b877ddf82..70ccd17ba72 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-01-14 Alan Modra + + * gcc.c-torture/compile/pr72749.c: New test. + 2017-01-13 David Malcolm PR c/78304 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr72749.c b/gcc/testsuite/gcc.c-torture/compile/pr72749.c new file mode 100644 index 00000000000..2ef4d9a8ae1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr72749.c @@ -0,0 +1,21 @@ +/* { dg-options "-O2 -fsched2-use-superblocks" } */ + +int as; + +void +ji (int *x4) +{ + if (0) + { + unsigned int pv; + + while (as < 0) + { + for (*x4 = 0; *x4 < 1; ++(*x4)) +yj: + x4 = (int *)&pv; + ++as; + } + } + goto yj; +}