Marshall Clow | 1c7fe12 | 2016-11-14 18:22:19 +0000 | [diff] [blame] | 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 | //===----------------------------------------------------------------------===// |
Stephan T. Lavavej | d72ece6 | 2016-11-23 22:03:28 +0000 | [diff] [blame] | 9 | // |
Marshall Clow | 1c7fe12 | 2016-11-14 18:22:19 +0000 | [diff] [blame] | 10 | // UNSUPPORTED: c++98, c++03, c++11, c++14 |
| 11 | // <numeric> |
| 12 | |
| 13 | // template<class _M, class _N> |
| 14 | // constexpr common_type_t<_M,_N> gcd(_M __m, _N __n) |
| 15 | |
Stephan T. Lavavej | d72ece6 | 2016-11-23 22:03:28 +0000 | [diff] [blame] | 16 | // Remarks: If either M or N is not an integer type, |
Marshall Clow | 1c7fe12 | 2016-11-14 18:22:19 +0000 | [diff] [blame] | 17 | // or if either is (a possibly cv-qualified) bool, the program is ill-formed. |
| 18 | |
| 19 | #include <numeric> |
| 20 | |
| 21 | |
| 22 | int main() |
| 23 | { |
| 24 | std::gcd(false, 4); |
| 25 | } |