diff options
author | Alan Modra <amodra@gmail.com> | 2017-01-14 23:59:29 +1030 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2017-01-14 23:59:29 +1030 |
commit | afaecc23b57e1d6827f071a4d560ca57770b2e25 (patch) | |
tree | 7bb00472df7bc103474ecec04c79681be35f3ccb | |
parent | d6b251481d16865e3ebb4e6075f99c2c484e4c72 (diff) | |
download | gcc-afaecc23b57e1d6827f071a4d560ca57770b2e25.zip gcc-afaecc23b57e1d6827f071a4d560ca57770b2e25.tar.gz gcc-afaecc23b57e1d6827f071a4d560ca57770b2e25.tar.bz2 |
Testcase from pr72749
PR target/72749
* gcc.c-torture/compile/pr72749.c: New test.
From-SVN: r244466
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr72749.c | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02b877d..70ccd17 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-01-14 Alan Modra <amodra@gmail.com> + + * gcc.c-torture/compile/pr72749.c: New test. + 2017-01-13 David Malcolm <dmalcolm@redhat.com> 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 0000000..2ef4d9a --- /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; +} |