Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Resolve integer overflow warnings in GCD and LCM tests | Billy Robert O'Neal III | 2017-05-08 | 1 | -20/+25 |
| | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Make lcm/gcd work better in edge cases. Fixes a UBSAN failure. | Marshall Clow | 2017-02-10 | 1 | -1/+0 |
| | | | | llvm-svn: 294779 | ||||
* | Temporarily disable the LCM/GCD tests under UBSAN. | Marshall Clow | 2017-02-08 | 1 | -0/+2 |
| | | | | llvm-svn: 294417 | ||||
* | Add some tests to verify that we implement LWG#2837 correctly. No functional ↵ | Marshall Clow | 2017-02-06 | 1 | -0/+7 |
| | | | | | | change. llvm-svn: 294194 | ||||
* | Fix unused parameters and variables | Eric Fiselier | 2016-12-23 | 1 | -1/+1 |
| | | | | llvm-svn: 290459 | ||||
* | [libcxx] [test] D27027: Strip trailing whitespace. | Stephan T. Lavavej | 2016-11-23 | 7 | -13/+13 |
| | | | | llvm-svn: 287829 | ||||
* | Fixes for LWG 2598, 2686, 2739, 2742, 2747, and 2759, which were adopted ↵ | Marshall Clow | 2016-11-14 | 6 | -2/+104 |
| | | | | | | last week in Issaquah llvm-svn: 286858 | ||||
* | Implement LCM and GCD for C++17. Same code as for Library Fundamentals TS. | Marshall Clow | 2016-07-26 | 3 | -0/+180 |
llvm-svn: 276751 |