diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/struct-arg-8-ubv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/struct-arg-8-ubv.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/struct-arg-8-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/struct-arg-8-ubv.c deleted file mode 100644 index fdcfc9ffb39..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/struct-arg-8-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" - -struct s1 { - int *p[2]; -} s1; - -int rd (struct s1 s, int i) -{ - int res = s.p[0][i]; - printf ("%d\n", res); - return res; -} - -int buf[100]; -int buf1[100]; - -int mpx_test (int argc, const char **argv) -{ - struct s1 s = { {buf, buf1} }; - - rd (s, 100); - - return 0; -} |