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>
13 // pair<const T&, const T&>
14 // minmax(const T& a, const T& b);
21 test(const T& a, const T& b, const T& x, const T& y)
23 std::pair<const T&, const T&> p = std::minmax(a, b);
24 assert(&p.first == &x);
25 assert(&p.second == &y);