Add missing test for r224643.
authorIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 19 Jun 2015 09:22:56 +0000 (09:22 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 19 Jun 2015 09:22:56 +0000 (09:22 +0000)
From-SVN: r224644

gcc/testsuite/gcc.target/i386/mpx/pr66581.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/i386/mpx/pr66581.c b/gcc/testsuite/gcc.target/i386/mpx/pr66581.c
new file mode 100644 (file)
index 0000000..015faae
--- /dev/null
@@ -0,0 +1,18 @@
+/* { dg-do compile } */
+/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
+
+void *a;
+int b;
+
+void
+fn1 (void)
+{
+  void *c = &&l_nop;
+l_nop:
+    for (; b;)
+    ;
+  int *d = c;
+  c = fn1;
+  *d = 1;
+  goto *a;
+}