From 01aa3748261d9fa531b87f0c5701f5b7eb03a475 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 24 Aug 2018 16:58:27 +0000 Subject: [PATCH] Add a testcase for PR middle-end/87092 PR middle-end/87092 * gcc.dg/pr87092.c: New test. From-SVN: r263837 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr87092.c | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr87092.c 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; +} -- 2.30.2