Add a testcase for PR middle-end/87092

PR middle-end/87092
	* gcc.dg/pr87092.c: New test.

From-SVN: r263837
This commit is contained in:
H.J. Lu 2018-08-24 16:58:27 +00:00 committed by H.J. Lu
parent 13ff3e166d
commit 01aa374826
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-08-24 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/87092
* gcc.dg/pr87092.c: New test.
2018-08-24 Marek Polacek <polacek@redhat.com>
PR c++/67012

View file

@ -0,0 +1,10 @@
/* { dg-do compile } */
/* { dg-options "-O2 -fwrapv" } */
int a, b;
void
c(void) {
if (b)
b = a / b;
}