diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/pointer-store-1-ubv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/pointer-store-1-ubv.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/pointer-store-1-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/pointer-store-1-ubv.c deleted file mode 100644 index 4c8d45e003f..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/pointer-store-1-ubv.c +++ /dev/null @@ -1,31 +0,0 @@ -/* { dg-do run } */ -/* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - - -#define SHOULDFAIL - -#include "mpx-check.h" - -int *buf1[100]; -int buf2[100]; - -void wr (int i) -{ - buf1[i] = buf2; -} - -int rd(int i, int j) -{ - int res = buf1[i][j]; - printf("%d\n", res); - return res; -} - -int mpx_test (int argc, const char **argv) -{ - wr(10); - rd(10, 100); - - return 0; -} |