diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-lbv.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-lbv.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-lbv.c b/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-lbv.c deleted file mode 100644 index 3275fe03db8..00000000000 --- a/gcc/testsuite/gcc.target/i386/mpx/thread-local-var-1-lbv.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, -1); -} - -int mpx_test (int argc, const char **argv) -{ - pthread_t thread; - pthread_create (&thread, NULL, thred_func, 0); - pthread_join (thread, NULL); - return 0; -} |