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

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

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);
}