Mercurial > hg > CbC > CbC_llvm
view compiler-rt/test/tsan/Darwin/dyld-library-path.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// Test that dyld interposition works in the presence of DYLD_LIBRARY_PATH. // RUN: %clang_tsan %s -o %t // RUN: env DYLD_LIBRARY_PATH=/usr/lib/system/introspection/ %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <pthread.h> #include <stdio.h> void *Thread(void *a) { fprintf(stderr, "Hello from pthread\n"); return NULL; } int main() { pthread_t t; pthread_create(&t, NULL, Thread, NULL); pthread_join(t, NULL); fprintf(stderr, "Done.\n"); } // CHECK: Hello from pthread // CHECK: Done.