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