xref: /llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/lcm.bool3.compile.fail.cpp (revision 31cbe0f240f660f15602c96b787c58a26f17e179)
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 
main(int,char **)21 int main(int, char**)
22 {
23     std::lcm<volatile bool, int>(false, 4);
24 
25   return 0;
26 }
27