diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-07-26 14:28:34 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-07-26 14:28:34 +0000 |
commit | ab581e79aa3ee4cdbcb30b9c5a76ff4e40281365 (patch) | |
tree | 7157af74800e0fd1aad83a8c0f8ba84ee7eb259d /libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.not_integral2.fail.cpp | |
parent | 3b4682f6ba97465372470a3c751f370cb0e0a31a (diff) | |
download | bcm5719-llvm-ab581e79aa3ee4cdbcb30b9c5a76ff4e40281365.tar.gz bcm5719-llvm-ab581e79aa3ee4cdbcb30b9c5a76ff4e40281365.zip |
Implement LCM and GCD for Library Fundamentals. Reviewed as https://reviews.llvm.org/D21343.
llvm-svn: 276750
Diffstat (limited to 'libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.not_integral2.fail.cpp')
-rw-r--r-- | libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.not_integral2.fail.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.not_integral2.fail.cpp b/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.not_integral2.fail.cpp new file mode 100644 index 00000000000..25bcd51ade7 --- /dev/null +++ b/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.lcm/lcm.not_integral2.fail.cpp @@ -0,0 +1,24 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// UNSUPPORTED: c++98, c++03, c++11 +// <numeric> + +// template<class _M, class _N> +// constexpr common_type_t<_M,_N> lcm(_M __m, _N __n) + +// Remarks: If either M or N is not an integer type, the program is ill-formed. + +#include <experimental/numeric> + + +int main() +{ + std::experimental::lcm(4, 6.0); +} |