summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/field-addr-9-lbv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/field-addr-9-lbv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/field-addr-9-lbv.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/field-addr-9-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/field-addr-9-lbv.c
deleted file mode 100644
index 127d0966330..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/field-addr-9-lbv.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-/* { dg-additional-options "-fchkp-narrow-to-innermost-array" } */
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-
-struct S {
- int first;
- int a[10];
- int b;
-} S;
-
-struct S1 {
- int a;
- struct S b[10];
- int c;
-} S1;
-
-struct S2 {
- int x;
- struct S1 a[10];
- struct S1 b;
-} S2;
-
-int foo (int *p, int i)
-{
- int res = p[i];
- printf ("%d\n", res);
- return res;
-}
-
-struct S2 s1;
-struct S2 *s2 = &s1;
-
-int mpx_test (int argc, const char **argv)
-{
- foo (&(s2->a[argc].b[5].a[0]), -1);
-
- return 0;
-}