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:
parent
13ff3e166d
commit
01aa374826
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
10
gcc/testsuite/gcc.dg/pr87092.c
Normal file
10
gcc/testsuite/gcc.dg/pr87092.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -fwrapv" } */
|
||||
|
||||
int a, b;
|
||||
|
||||
void
|
||||
c(void) {
|
||||
if (b)
|
||||
b = a / b;
|
||||
}
|
Loading…
Add table
Reference in a new issue