summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2017-02-10 22:44:14 +0000
committerMarshall Clow <mclow.lists@gmail.com>2017-02-10 22:44:14 +0000
commit3bc2e084291d119532720df70682ebfa42eaf200 (patch)
tree23c1d93725f7ce3fc927f46fbca28aed22538897 /libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp
parentbfbff07e73dd612193e9bb8e3ec1bec1bfab62f0 (diff)
downloadbcm5719-llvm-3bc2e084291d119532720df70682ebfa42eaf200.tar.gz
bcm5719-llvm-3bc2e084291d119532720df70682ebfa42eaf200.zip
Fix a bug I introduced in the tests for experimental::lcm and experimental::gcd.
llvm-svn: 294798
Diffstat (limited to 'libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp')
-rw-r--r--libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp b/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp
index 4dd139a8df8..fd463e88e63 100644
--- a/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp
+++ b/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.pass.cpp
@@ -131,8 +131,8 @@ int main()
// LWG#2792
{
- auto res1 = std::lcm((int64_t)1234, (int32_t)-2147483648);
- (void) std::lcm<int, unsigned long>(INT_MIN, 2); // this used to trigger UBSAN
+ auto res1 = std::experimental::lcm((int64_t)1234, (int32_t)-2147483648);
+ (void) std::experimental::lcm<int, unsigned long>(INT_MIN, 2); // this used to trigger UBSAN
static_assert( std::is_same<decltype(res1), std::common_type<int64_t, int32_t>::type>::value, "");
assert(res1 == 1324997410816LL);
}
OpenPOWER on IntegriCloud