Commit 77f80cd5 by Maarten L. Hekkelman

Fix atomic test (apparently, libatomic is only needed for std::atomic<long long>)

parent 3df60006
...@@ -20,9 +20,8 @@ mark_as_advanced(_CXX_ATOMIC_HAVE_HEADER) ...@@ -20,9 +20,8 @@ mark_as_advanced(_CXX_ATOMIC_HAVE_HEADER)
set(code [[ set(code [[
#include <atomic> #include <atomic>
int main(int argc, char** argv) { int main(int argc, char** argv) {
struct Test { int val; }; std::atomic<long long> s;
std::atomic<Test> s; ++s;
(void)s.is_lock_free();
return 0; return 0;
} }
]]) ]])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment