[SimplifyCFG] Always allow hoisting if all instructions match. (#97158)
[llvm-project.git] / libcxx / test / std / numerics / numeric.ops / numeric.ops.gcd / gcd.not_integral1.compile.fail.cpp
blob0691963a95c95476713f0d029f768d497cbadfc4
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(2.0, 4);
25 return 0;