2014-05-30 22:08:51 +08:00
|
|
|
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
|
2013-05-21 16:12:35 +08:00
|
|
|
extern "C" void AnnotateIgnoreWritesBegin(const char *f, int l);
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
AnnotateIgnoreWritesBegin("", 0);
|
|
|
|
}
|
|
|
|
|
2013-11-27 19:30:28 +08:00
|
|
|
// CHECK: ThreadSanitizer: main thread finished with ignores enabled
|
|
|
|
// CHECK: Ignore was enabled at:
|
|
|
|
// CHECK: #0 AnnotateIgnoreWritesBegin
|
|
|
|
// CHECK: #1 main
|
2013-05-21 16:12:35 +08:00
|
|
|
|