summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/struct-copy-1-ubv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/struct-copy-1-ubv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/struct-copy-1-ubv.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/struct-copy-1-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/struct-copy-1-ubv.c
deleted file mode 100644
index b0fe8f46143..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/struct-copy-1-ubv.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-
-int buf1[100];
-int buf2[200];
-
-struct s1 {
- int a;
- int *p[2];
-} s1;
-
-struct s2 {
- int a;
- struct s1 b[2];
-} s2;
-
-struct s2 s = { 1, { {1, { buf1, buf2 }}, {2, { buf2, buf1} } } };
-
-int mpx_test (int argc, const char *argv[])
-{
- struct s2 ss = s;
-
- printf ("%d\n", ss.b[0].p[0][100]);
-
- return 0;
-}