depot/third_party/nixpkgs/pkgs/test/cc-wrapper/atomics.cc

9 lines
120 B
C++
Raw Normal View History

#include <atomic>
#include <cstdint>
int main()
{
std::atomic_int x = {0};
return !std::atomic_is_lock_free(&x);
}