| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // template<LessThanComparable T> |
| // min(const T& a, const T& b); |
| test(const T& a, const T& b, const T& x) |
| assert(&std::min(a, b) == &x); |
| static_assert(std::min(x, y) == y, "" ); |
| static_assert(std::min(y, x) == y, "" ); |