mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
dabfaef444
`-std=c++17` is for clang 5
9 lines
120 B
C++
9 lines
120 B
C++
#include <atomic>
|
|
#include <cstdint>
|
|
|
|
int main()
|
|
{
|
|
std::atomic_int x = {0};
|
|
return !std::atomic_is_lock_free(&x);
|
|
}
|