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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
122 B
C++
Raw Normal View History

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