summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/vla-2-ubv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/vla-2-ubv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/vla-2-ubv.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/vla-2-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/vla-2-ubv.c
deleted file mode 100644
index 63a6b279215..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/vla-2-ubv.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-
-struct Foo {
- int buf[10] __attribute__((bnd_variable_size));
-};
-
-int rd (int *p, int i)
-{
- int res = p[i];
- printf ("%d\n", res);
- return res;
-}
-
-int mpx_test (int argc, const char **argv) {
- struct Foo *foo = (struct Foo *) alloca (20 * sizeof(int));
-
- rd (foo->buf, 20);
-
- return 0;
-}