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 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03
16 // min(initializer_list<T> t);
21 #include "test_macros.h"
25 int i = std::min({2, 3, 1});
27 i = std::min({2, 1, 3});
29 i = std::min({3, 1, 2});
31 i = std::min({3, 2, 1});
33 i = std::min({1, 2, 3});
35 i = std::min({1, 3, 2});
37 #if TEST_STD_VER >= 14
39 static_assert(std::min({1, 3, 2}) == 1, "");
40 static_assert(std::min({2, 1, 3}) == 1, "");
41 static_assert(std::min({3, 2, 1}) == 1, "");