summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/realloc-1-lbv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/realloc-1-lbv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/realloc-1-lbv.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/realloc-1-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/realloc-1-lbv.c
deleted file mode 100644
index 961196f71c0..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/realloc-1-lbv.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-
-int rd (int *p, int i)
-{
- int res = p[i];
- printf ("%d\n", res);
- return res;
-}
-
-int mpx_test (int argc, const char **argv)
-{
- int *buf = (int *)malloc (100 * sizeof(int));
- buf = (int *)realloc (buf, 200 * sizeof(int));
-
- rd (buf, -1);
-
- free (buf);
-
- return 0;
-}