From 46901f613b905e4b908b3750542f1618f98f1073 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 24 Sep 2013 11:21:16 +0000 Subject: [PATCH] [msan] Test for atomic handling in MSan. llvm-svn: 191288 --- compiler-rt/lib/msan/lit_tests/sync_lock_set_and_test.cc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 compiler-rt/lib/msan/lit_tests/sync_lock_set_and_test.cc diff --git a/compiler-rt/lib/msan/lit_tests/sync_lock_set_and_test.cc b/compiler-rt/lib/msan/lit_tests/sync_lock_set_and_test.cc new file mode 100644 index 000000000000..1023b3e54368 --- /dev/null +++ b/compiler-rt/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; +}