summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/union-arg-1-lbv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/union-arg-1-lbv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/union-arg-1-lbv.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/union-arg-1-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/union-arg-1-lbv.c
deleted file mode 100644
index c2559829bfd..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/union-arg-1-lbv.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-
-struct s1
-{
- union {
- int i1;
- int i3;
- } v;
- int i2;
- union {
- int *p;
- int p2;
- } u;
-} s1;
-
-int rd (struct s1 s)
-{
- int res = s.u.p[s.v.i1 + s.i2];
- printf ("%d\n", res);
- return res;
-}
-
-int buf[100];
-int buf1[10];
-
-int mpx_test (int argc, const char **argv)
-{
- struct s1 s;
- s.u.p = buf;
- s.v.i1 = 50;
- s.i2 = -51;
-
- rd (s);
-
- return 0;
-}