diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/field-addr-3-ubv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/field-addr-3-ubv.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/field-addr-3-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/field-addr-3-ubv.c deleted file mode 100644 index 55a8af3a0ce..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/field-addr-3-ubv.c +++ /dev/null @@ -1,29 +0,0 @@ -/* { dg-do run } */ -/* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - - -#define SHOULDFAIL - -#include "mpx-check.h" - -struct S { - int a; - int b[100]; - int c; -} S; - -int foo (int *p, int i) -{ - printf ("%d\n", p[i]); - return p[i]; -} - -struct S s; - -int mpx_test (int argc, const char **argv) -{ - foo (&s.b[0], 100); - - return 0; -} |