mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +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);
|
|
}
|