You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
644 B
20 lines
644 B
4 months ago
|
// RUN: %clangxx_tsan -shared %p/external-lib.cpp -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.cpp %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.
|