[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / compiler-rt / test / tsan / Darwin / dyld-library-path.c
blob729c45d53fcee5a3efa1c6058865e5b83ecc15d4
1 // Test that dyld interposition works in the presence of DYLD_LIBRARY_PATH.
3 // RUN: %clang_tsan %s -o %t
4 // RUN: env DYLD_LIBRARY_PATH=/usr/lib/system/introspection/ %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer'
6 #include <pthread.h>
7 #include <stdio.h>
9 void *Thread(void *a) {
10 fprintf(stderr, "Hello from pthread\n");
11 return NULL;
14 int main() {
15 pthread_t t;
16 pthread_create(&t, NULL, Thread, NULL);
17 pthread_join(t, NULL);
18 fprintf(stderr, "Done.\n");
21 // CHECK: Hello from pthread
22 // CHECK: Done.