1 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
10 void OnPotentiallyBlockingRegionBegin() {
11 printf("Enter __cxa_guard_acquire\n");
17 void OnPotentiallyBlockingRegionEnd() { printf("Exit __cxa_guard_acquire\n"); }
21 int main(int argc
, char **argv
) {
23 printf("Enter main\n");
24 // CHECK-NEXT: Enter __cxa_guard_acquire
25 // CHECK-NEXT: Exit __cxa_guard_acquire
28 // CHECK-NEXT: Exit main
29 printf("Exit main\n");