From: H.J. Lu Date: Fri, 24 Aug 2018 16:58:27 +0000 (+0000) Subject: Add a testcase for PR middle-end/87092 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01aa3748261d9fa531b87f0c5701f5b7eb03a475;p=gcc.git Add a testcase for PR middle-end/87092 PR middle-end/87092 * gcc.dg/pr87092.c: New test. From-SVN: r263837 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index eafd7ecd292..004f332be80 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-08-24 H.J. Lu + + PR middle-end/87092 + * gcc.dg/pr87092.c: New test. + 2018-08-24 Marek Polacek PR c++/67012 diff --git a/gcc/testsuite/gcc.dg/pr87092.c b/gcc/testsuite/gcc.dg/pr87092.c new file mode 100644 index 00000000000..4a6faebbd93 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr87092.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fwrapv" } */ + +int a, b; + +void +c(void) { + if (b) + b = a / b; +}