diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/field-addr-1-ubv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/field-addr-1-ubv.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/field-addr-1-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/field-addr-1-ubv.c deleted file mode 100644 index 990adee3bb2..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/field-addr-1-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 *i, int k) -{ - printf ("%d\n", i[k]); - return i[k]; -} - -int mpx_test (int argc, const char **argv) -{ - struct S s; - - foo(&s.a, 102); - - return 0; -} |