llvm-project/compiler-rt/test/msan/sync_lock_set_and_test.cpp

8 lines
122 B
C++

// RUN: %clangxx_msan -O0 %s -o %t && %run %t
int main(void) {
int i;
__sync_lock_test_and_set(&i, 0);
return i;
}