summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-ubv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-ubv.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-ubv.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-ubv.c b/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-ubv.c
deleted file mode 100644
index 86116e87e4d..00000000000
--- a/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-ubv.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* { dg-do run } */
-/* { dg-shouldfail "bounds violation" } */
-/* { dg-options "-fcheck-pointer-bounds -mmpx" } */
-
-/* { dg-additional-options "-lpthread" } */
-
-#define SHOULDFAIL
-
-#include "mpx-check.h"
-#include "pthread.h"
-
-__thread int prebuf[100];
-__thread int buf[100];
-__thread int postbuf[100];
-
-int rd (int *p, int i)
-{
- int res = p[i];
- printf("%d\n", res);
- return res;
-}
-
-void *thred_func (void *ptr)
-{
- rd (buf, 100);
-}
-
-int mpx_test (int argc, const char **argv)
-{
- pthread_t thread;
- pthread_create (&thread, NULL, thred_func, 0);
- pthread_join (thread, NULL);
- return 0;
-}