Revert "[libc] Use best-fit binary trie to make malloc logarithmic" (#117065)
[llvm-project.git] / libcxx / test / std / numerics / numeric.ops / numeric.ops.gcd / gcd.not_integral2.compile.fail.cpp
blob94a615c24aff5ef8197cef32c7c5380398a50bf1
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>
12 // template<class _M, class _N>
13 // constexpr common_type_t<_M,_N> gcd(_M __m, _N __n)
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.
18 #include <numeric>
21 int main(int, char**)
23 std::gcd(4, 6.0);
25 return 0;