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