diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/vararg-6-ubv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/vararg-6-ubv.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/vararg-6-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/vararg-6-ubv.c deleted file mode 100644 index 635a48fc16d..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/vararg-6-ubv.c +++ /dev/null @@ -1,38 +0,0 @@ -/* { dg-do run } */ -/* { dg-shouldfail "bounds violation" } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - - -#define SHOULDFAIL - -#include "mpx-check.h" -#include "stdarg.h" - -int buf[100]; -int buf1[10]; - -int rd (int *pp, ...) -{ - va_list argp; - int *p; - int i; - int res; - int n = 4; - - va_start (argp, pp); - for (; n > 0; n--) - va_arg (argp, int *); - p = va_arg (argp, int *); - i = va_arg (argp, int); - - res = p[i]; - printf ("%d\n", res); - - return res; -} - -int mpx_test (int argc, const char **argv) -{ - rd (buf1, buf1, buf1, buf1, buf1, buf, 100, buf1); - return 0; -} |