comparison gcc/testsuite/c-c++-common/tsan/thread_leak2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* { dg-shouldfail "tsan" } */ 1 /* { dg-shouldfail "tsan" } */
2
3 /* { dg-additional-options "-fno-unroll-loops" { target { powerpc*-*-* } } } */
4 /* -fno-unroll-loops help to avoid ThreadSanitizer reporting multi-times
5 message for pthread_create at difference calling addresses. */
2 6
3 #include <pthread.h> 7 #include <pthread.h>
4 #include <unistd.h> 8 #include <unistd.h>
5 9
6 void *Thread(void *x) { 10 void *Thread(void *x) {