[PATCH] D32309: [libcxx] [test] Resolve compiler warnings in LCM/GCD tests
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 4 01:19:51 PDT 2017
EricWF added inline comments.
================
Comment at: test/std/numerics/numeric.ops/numeric.ops.gcd/gcd.pass.cpp:146
+ auto res = std::gcd(static_cast<int64_t>(1234), INT32_MIN);
+ static_assert(std::is_same<decltype(res), std::common_type_t<int64_t, int32_t>>::value, "");
assert(res == 2);
----------------
`std::common_type` here please. This test runs in C++03 where we don't have `std::foo_t`.
https://reviews.llvm.org/D32309
More information about the cfe-commits
mailing list