Make lcm/gcd work better in edge cases. Fixes a UBSAN failure.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@294779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2017-02-10 20:49:08 +00:00
parent 00d9a944af
commit ebf66a385f
6 changed files with 52 additions and 28 deletions

View File

@@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: c++98, c++03, c++11, c++14
// XFAIL: ubsan
// <numeric>