[TSan][libdispatch] Make test work on Linux, pt. 2

llvm-svn: 357741
This commit is contained in:
Julian Lettner
2019-04-05 02:05:57 +00:00
parent 5d289ed3fe
commit 7d1ec7b07e

View File

@@ -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);