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