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

8 lines
122 B
C++

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