summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/field-addr-2-nov.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/field-addr-2-nov.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/field-addr-2-nov.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/field-addr-2-nov.c b/gcc/testsuite/gcc.target/i386/mpx/field-addr-2-nov.c
deleted file mode 100644
index 2a685036ca0..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/field-addr-2-nov.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* { dg-do run } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-/* { dg-additional-options "-fchkp-first-field-has-own-bounds" } */
-
-#include "mpx-check.h"
-
-struct S {
- int a;
- int b[100];
- int c;
-} S;
-
-int foo (int *i, int k)
-{
- printf ("%d\n", i[k]);
- return i[k];
-}
-
-int mpx_test (int argc, const char **argv)
-{
- struct S s;
-
- foo(&s.a, 0);
-
- return 0;
-}