Add missed testcase for 223215.
authorIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 15 May 2015 09:49:25 +0000 (09:49 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 15 May 2015 09:49:25 +0000 (09:49 +0000)
From-SVN: r223217

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

diff --git a/gcc/testsuite/gcc.target/i386/mpx/pr66134.c b/gcc/testsuite/gcc.target/i386/mpx/pr66134.c
new file mode 100644 (file)
index 0000000..3889674
--- /dev/null
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx -fno-tree-ccp" } */
+
+extern int vfork (void) __attribute__ ((__nothrow__ , __leaf__));
+void test1 (void);
+void test2 (void);
+void test3 (int *);
+
+void test (int *p)
+{
+ test1 ();
+ p++;
+ test2 ();
+ p++;
+ vfork ();
+ test3 (p);
+}