summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/struct-copy-2-nov.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/struct-copy-2-nov.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/struct-copy-2-nov.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/struct-copy-2-nov.c b/gcc/testsuite/gcc.target/i386/mpx/struct-copy-2-nov.c
deleted file mode 100644
index 01f5b679faf..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/struct-copy-2-nov.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#include "mpx-check.h"
-
-struct S {
- int a;
- int b[100];
- int c;
-} S;
-
-int foo (void *p, int k)
-{
- struct S *s = (struct S*)p;
- int res = s->b[k];
- printf ("%d\n", res);
- return res;
-}
-
-int mpx_test (int argc, const char **argv)
-{
- struct S s;
-
- foo (&s.a, 0);
- foo (&s.a, 99);
-
- return 0;
-}