| //===----------------------------------------------------------------------===// |
| // 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> |
| // max(const T& a, const T& b); |
| test(const T& a, const T& b, const T& x) |
| assert(&std::max(a, b) == &x); |
| static_assert(std::max(x, y) == x, "" ); |
| static_assert(std::max(y, x) == x, "" ); |