Files
clang-p2996/compiler-rt/test/tsan/cxa_guard_acquire.cpp
Azharuddin Mohammed 593275c93c Mark tsan cxa_guard_acquire test as unsupported on Darwin
This test started failing after recent commit `636428c727cd`. Marking it
as unsupported to get the bot back to green until we get it sorted out.
2021-08-18 01:44:20 -07:00

27 lines
588 B
C++

// UNSUPPORTED: darwin
// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
#include <stdio.h>
namespace __tsan {
void OnPotentiallyBlockingRegionBegin() {
printf("Enter __cxa_guard_acquire\n");
}
void OnPotentiallyBlockingRegionEnd() { printf("Exit __cxa_guard_acquire\n"); }
} // namespace __tsan
int main(int argc, char **argv) {
// CHECK: Enter main
printf("Enter main\n");
// CHECK-NEXT: Enter __cxa_guard_acquire
// CHECK-NEXT: Exit __cxa_guard_acquire
static int s = argc;
(void)s;
// CHECK-NEXT: Exit main
printf("Exit main\n");
return 0;
}