gcd.not_integral1.fail.cpp 662 B

123456789101112131415161718192021222324
  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> gcd(_M __m, _N __n)
  14. // Remarks: If either M or N is not an integer type, the program is ill-formed.
  15. #include <experimental/numeric>
  16. int main()
  17. {
  18. std::experimental::gcd(2.0, 4);
  19. }