summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/vararg-2-nov.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/vararg-2-nov.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/vararg-2-nov.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/vararg-2-nov.c b/gcc/testsuite/gcc.target/i386/mpx/vararg-2-nov.c
deleted file mode 100644
index 5c2f422dc3f..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/vararg-2-nov.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#include "mpx-check.h"
-#include "stdarg.h"
-
-int buf[100];
-int buf1[10];
-
-int
-rd (int *pppp, int n, ...)
-{
- va_list argp;
- int *p;
- int i;
- int res;
-
- va_start (argp, n);
- 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, 1, buf1, buf, 0, buf1);
- rd (buf1, 1, buf1, buf, 99, buf1);
- return 0;
-}