diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/static-string-1-lbv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/static-string-1-lbv.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/static-string-1-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/static-string-1-lbv.c deleted file mode 100644 index e2443804f74..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/static-string-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" - -char *str="dddd"; - -int foo1 (char** ptr) -{ - *ptr=str; -} - -int foo (char *ptr) -{ - char *tmp = 0; - foo1 (&ptr); - tmp = ptr; - return tmp[-1]; -} - -int mpx_test (int argc, const char **argv) -{ - printf ("%d\n", foo ("ddddd")); - return 0; -} |