mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[TSan][libdispatch] Make test work on Linux, pt. 2
llvm-svn: 357741
This commit is contained in:
@@ -28,8 +28,8 @@ int main() {
|
||||
|
||||
f();
|
||||
|
||||
pthread_mutex_t mutex = {0};
|
||||
pthread_mutex_lock(&mutex);
|
||||
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
pthread_mutex_unlock(&mutex); // Unlock of an unlocked mutex
|
||||
|
||||
fprintf(stderr, "g = %ld.\n", g);
|
||||
fprintf(stderr, "h = %ld.\n", h);
|
||||
|
||||
Reference in New Issue
Block a user