forked from OSchip/llvm-project
parent
a3365ac962
commit
25ecfcf00c
|
@ -1,8 +1,10 @@
|
|||
// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
|
||||
#include <pthread.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void *Thread(void *a) {
|
||||
sleep(1);
|
||||
*(int*)a = 43;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
void *Thread2(void *a) {
|
||||
sleep(1);
|
||||
*(int*)a = 43;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue