summary refs log tree commit diff
path: root/pkgs/test/cc-wrapper/atomics.cc
blob: 23601ae92f0b01e69fb197b60e1c924ed6aa42a3 (plain) (blame)
1
2
3
4
5
6
7
8
#include <atomic>
#include <cstdint>

int main()
{
  std::atomic_int x = {0};
  return !std::atomic_is_lock_free(&x);
}