Add a testcase for PR middle-end/87092
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 24 Aug 2018 16:58:27 +0000 (16:58 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 24 Aug 2018 16:58:27 +0000 (09:58 -0700)
PR middle-end/87092
* gcc.dg/pr87092.c: New test.

From-SVN: r263837

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87092.c [new file with mode: 0644]

index eafd7ec..004f332 100644 (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
diff --git a/gcc/testsuite/gcc.dg/pr87092.c b/gcc/testsuite/gcc.dg/pr87092.c
new file mode 100644 (file)
index 0000000..4a6faeb
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fwrapv" } */
+
+int a, b;
+
+void
+c(void) {
+  if (b)
+    b = a / b;
+}