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.
-latomic
1 parent 65c05db commit f8ca135Copy full SHA for f8ca135
build-aux/m4/l_atomic.m4
@@ -4,7 +4,7 @@ dnl permitted in any medium without royalty provided the copyright notice
4
dnl and this notice are preserved. This file is offered as-is, without any
5
dnl warranty.
6
7
-# Clang prior to version 15, when building for 32-bit,
+# 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
@@ -24,6 +24,8 @@ m4_define([_CHECK_ATOMIC_testbody], [[
24
25
std::atomic<std::chrono::seconds> t{0s};
26
t.store(2s);
27
+ auto t1 = t.load();
28
+ t.compare_exchange_strong(t1, 3s);
29
30
std::atomic<int64_t> a{};
31
0 commit comments