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