text: // RUN: %clangxx_tsan -shared %p/external-lib.cc -fno-sanitize=thread -DUSE_TSAN_CALLBACKS \
  // RUN:   -o %t-lib.dylib -install_name @rpath/`basename %t-lib.dylib`
  
  // RUN: %clangxx_tsan -shared %p/external-noninstrumented-module.cc %t-lib.dylib -fno-sanitize=thread \
  // RUN:   -o %t-module.dylib -install_name @rpath/`basename %t-module.dylib`
  
  // RUN: %clangxx_tsan %s %t-module.dylib -o %t
  // RUN: %run %t 2>&1 | FileCheck %s
  
  #include <stdio.h>
  
  extern "C" void NonInstrumentedModule();
  int main(int argc, char *argv[]) {
    NonInstrumentedModule();
    fprintf(stderr, "Done.\n");
  }
  
  // CHECK-NOT: WARNING: ThreadSanitizer
  // CHECK: Done.
  