diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/vararg-8-nov.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/vararg-8-nov.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/vararg-8-nov.c b/gcc/testsuite/gcc.target/i386/mpx/vararg-8-nov.c deleted file mode 100644 index 59596f27166..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/vararg-8-nov.c +++ /dev/null @@ -1,38 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-fcheck-pointer-bounds -mmpx" } */ - - -#include "mpx-check.h" -#include <stdarg.h> - -int buf[100]; -int buf1[10]; - -void vararg (int *p, va_list al) -{ - int i; - int res; - - p = va_arg (al, int *); - i = va_arg (al, int); - - res = p[i]; - printf ("%d\n", res); -} - -void foo (int *p, ...) -{ - va_list args; - - va_start (args, p); - vararg (p, args); - va_end (args); -} - -int mpx_test (int argc, const char **argv) -{ - foo (buf1, buf, 0); - foo (buf1, buf, 99); - - return 0; -} |