diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c b/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c deleted file mode 100644 index 6ecbdc1a322..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/memcpy-1.c +++ /dev/null @@ -1,24 +0,0 @@ -/* { dg-do run } */ -/* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - -/* Fix for PR78631 */ - -#define SHOULDFAIL - -#include <stdio.h> -#include <string.h> -#include "mpx-check.h" - -char s[10]; -char d[10]; -__attribute__((noinline)) - -char* foo(char* dst, char* src, size_t size) { - return memcpy(dst, src, size); -} -int mpx_test(int argc, const char **argv) { - char* r = foo(d, s, 11); - printf("r = %p\n", r); - return 0; -} |