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)
set(code [[
#include <atomic>
int main(int argc, char** argv) {
struct Test { int val; };
std::atomic<Test> s;
(void)s.is_lock_free();
std::atomic<long long> s;
++s;
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