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 // template<class E> class initializer_list;
12 // initializer_list();
14 #include <initializer_list>
17 #include "test_macros.h"
23 #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
24 std::initializer_list<A> il;
25 assert(il.size() == 0);
26 #endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
28 constexpr std::initializer_list<A> il2;
29 static_assert(il2.size() == 0, "");
30 #endif // TEST_STD_VER > 11