File: libatomic_check.cpp

package info (click to toggle)
freefilesync 13.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,044 kB
  • sloc: cpp: 66,712; ansic: 447; makefile: 216
file content (12 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
// Inspired from https://raw.githubusercontent.com/ccache/ccache/master/cmake/StdAtomic.cmake
// The project from which it derives is licensed under GPL-3.0-or-later
// From: Joel Rosdahl <joel@rosdahl.net>
// Date: Tue, 10 Nov 2020 19:43:14 +0100

#include <atomic>
int main()
{
  std::atomic<long long> x;
  (void)x.load();
  return 0;
}