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