forked from OSchip/llvm-project
![]() lcm.pass.cpp: 19: Update headers to that actually used in the test. 41: test0 was triggering narrowing warnings for all callers, because the inputs were always ints, but some of the explicit template arguments were smaller than that. Instead, have this function accept ints and static_cast explicitly to the types we want before calling std::lcm. 47: Replace unnecessary ternary. 55: Use foo_t instead of typename foo<>::type 111/116: intX_t were not std::qualified but only <cfoo> headers were included. 141: C1XX has a bug where it interprets 2147483648 as unsigned int. Then the negation trips "negation of unsigned value, result still unsigned" warnings. Perma-workaround this issue by saying INT_MIN, which better documents the intended behavior and avoids triggering warnings on C1XX. gcd.pass.cpp: Same changes as lcm.pass.cpp but for GCD. llvm-svn: 302472 |
||
---|---|---|
.. | ||
gcd.bool1.fail.cpp | ||
gcd.bool2.fail.cpp | ||
gcd.bool3.fail.cpp | ||
gcd.bool4.fail.cpp | ||
gcd.not_integral1.fail.cpp | ||
gcd.not_integral2.fail.cpp | ||
gcd.pass.cpp |