summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/if-stmt-1-ubv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/if-stmt-1-ubv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/if-stmt-1-ubv.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/if-stmt-1-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/if-stmt-1-ubv.c
deleted file mode 100644
index 021a3aed267..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/if-stmt-1-ubv.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-
-int rd (int *p1, int *p2, int i)
-{
- int res;
-
- if (p1 < p2)
- p1 = p2;
-
- res = p1[i];
- printf ("%d\n", res);
- return res;
-}
-
-int buf[100];
-
-int mpx_test (int argc, const char **argv)
-{
- int *p = __bnd_set_ptr_bounds (buf + 1, 40);
- rd (buf, p, 10);
-
- return 0;
-}