lcm.bool4.fail.cpp 731 B

12345678910111213141516171819202122232425
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is dual licensed under the MIT and the University of Illinois Open
  6. // Source Licenses. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // UNSUPPORTED: c++98, c++03, c++11
  11. // <numeric>
  12. // template<class _M, class _N>
  13. // constexpr common_type_t<_M,_N> lcm(_M __m, _N __n)
  14. // Remarks: If either M or N is not an integer type,
  15. // or if either is (a possibly cv-qualified) bool, the program is ill-formed.
  16. #include <experimental/numeric>
  17. int main()
  18. {
  19. std::experimental::lcm<int, const bool>(2, true);
  20. }