diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/va-arg-pack-2-lbv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/va-arg-pack-2-lbv.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/va-arg-pack-2-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/va-arg-pack-2-lbv.c deleted file mode 100644 index dab1dc86792..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/va-arg-pack-2-lbv.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-do run } */ -/* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - -/* { dg-additional-options "-Wno-attributes" } */ - -#define SHOULDFAIL - -#include "mpx-check.h" -#include <stdarg.h> - -int -foo2 (int i1, int *p1, ...) -{ - va_list argp; - int *p; - int i; - int res; - - va_start(argp, p1); - p = va_arg(argp, int *); - i = va_arg(argp, int); - - res = p[i + i1]; - printf("%d\n", res); - - return res; -} - -static __attribute__((always_inline)) int -foo1 (int *p1, ...) -{ - return foo2 (10, p1, __builtin_va_arg_pack ()); -} - -int prebuf[100]; -int buf[100]; -int buf1[100]; -int postbuf[100]; - -int mpx_test (int argc, const char **argv) -{ - foo1 (buf, buf1, -11); - return 0; -} |