We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CHECK_ATOMIC
1 parent 0de63b8 commit dd3e0faCopy full SHA for dd3e0fa
build-aux/m4/l_atomic.m4
@@ -7,7 +7,7 @@ dnl warranty.
7
# Clang, when building for 32-bit,
8
# and linking against libstdc++, requires linking with
9
# -latomic if using the C++ atomic library.
10
-# Can be tested with: clang++ test.cpp -m32
+# Can be tested with: clang++ -std=c++20 test.cpp -m32
11
#
12
# Sourced from http://bugs.debian.org/797228
13
@@ -27,8 +27,11 @@ m4_define([_CHECK_ATOMIC_testbody], [[
27
auto t1 = t.load();
28
t.compare_exchange_strong(t1, 3s);
29
30
- std::atomic<int64_t> a{};
+ std::atomic<double> d{};
31
+ d.store(3.14);
32
+ auto d1 = d.load();
33
34
+ std::atomic<int64_t> a{};
35
int64_t v = 5;
36
int64_t r = a.fetch_add(v);
37
return static_cast<int>(r);
0 commit comments