tsan: fix test for -O2

llvm-svn: 200012
This commit is contained in:
Dmitry Vyukov 2014-01-24 15:58:20 +00:00
parent 65fd0a8c6b
commit 80240acd77
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ void *Thread(void *x) {
}
int main() {
for (int i = 0; i < 5; i++) {
volatile int N = 5; // prevent loop unrolling
for (int i = 0; i < N; i++) {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
}