xref: /aosp_15_r20/external/compiler-rt/test/msan/sync_lock_set_and_test.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t
2 
main(void)3 int main(void) {
4   int i;
5   __sync_lock_test_and_set(&i, 0);
6   return i;
7 }
8