1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template<LessThanComparable T>
14 // max(const T& a, const T& b);
21 test(const T& a, const T& b, const T& x)
23 assert(&std::max(a, b) == &x);
46 #if _LIBCPP_STD_VER > 11
50 static_assert(std::max(x, y) == x, "" );
51 static_assert(std::max(y, x) == x, "" );