diff options
Diffstat (limited to 'lib/msan/lit_tests/sync_lock_set_and_test.cc')
-rw-r--r-- | lib/msan/lit_tests/sync_lock_set_and_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/msan/lit_tests/sync_lock_set_and_test.cc b/lib/msan/lit_tests/sync_lock_set_and_test.cc new file mode 100644 index 000000000000..1023b3e54368 --- /dev/null +++ b/lib/msan/lit_tests/sync_lock_set_and_test.cc @@ -0,0 +1,7 @@ +// RUN: %clangxx_msan -m64 -O0 %s -o %t && %t + +int main(void) { + int i; + __sync_lock_test_and_set(&i, 0); + return i; +} |