| 1 |
//===----------------------------------------------------------------------===// |
| 2 |
// |
| 3 |
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 |
// See https://llvm.org/LICENSE.txt for license information. |
| 5 |
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
// |
| 9 |
// UNSUPPORTED: c++03, c++11, c++14 |
| 10 |
// <numeric> |
| 11 |
|
| 12 |
// template<class _M, class _N> |
| 13 |
// constexpr common_type_t<_M,_N> lcm(_M __m, _N __n) |
| 14 |
|
| 15 |
// Remarks: If either M or N is not an integer type, |
| 16 |
// or if either is (a possibly cv-qualified) bool, the program is ill-formed. |
| 17 |
|
| 18 |
#include <numeric> |
| 19 |
|
| 20 |
|
| 21 |
int main(int, char**) |
| 22 |
{ |
| 23 |
std::lcm<int, const bool>(2, true); |
| 24 |
|
| 25 |
return 0; |
| 26 |
} |