// { dg-options "-std=gnu++0x" }
// 2007-11-01 Paolo Carlini .
#include
#include
#include
void test01()
{
bool test __attribute__((unused)) = true;
std::pair z = std::minmax(1, 2);
std::pair w = std::minmax(4, 3);
VERIFY( z.first == 1 );
VERIFY( z.second == 2 );
VERIFY( w.first == 3 );
VERIFY( w.second == 4 );
std::pair zc = std::minmax(1, 2, std::greater());
std::pair wc = std::minmax(4, 3, std::greater());
VERIFY( zc.first == 2 );
VERIFY( zc.second == 1 );
VERIFY( wc.first == 4 );
VERIFY( wc.second == 3 );
}
int main()
{
test01();
return 0;
}