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

8 lines
127 B
C++
Raw Normal View History

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