/external/clang/test/SemaCXX/ |
D | cxx0x-initializer-stdinitializerlist.cpp | 13 class initializer_list class 18 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 32 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 58 std::initializer_list<int> il = { 1, 2, 3 }; in simple_list() 59 std::initializer_list<double> dl = { 1.0, 2.0, 3 }; in simple_list() 60 std::initializer_list<A> al = { {1, 2}, {2, 3}, {3, 4} }; in simple_list() 61 std::initializer_list<B> bl = { {1, 2}, {2, 3}, {} }; in simple_list() 65 void f(std::initializer_list<int>); in function_call() 68 void g(std::initializer_list<B>); in function_call() 83 one overloaded(std::initializer_list<int>); in overloaded_call() [all …]
|
D | cxx0x-initializer-constructor.cpp | 11 class initializer_list class 16 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 30 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 53 F(std::initializer_list<int>) { static_assert(N == 3, ""); } in F() 58 D(std::initializer_list<int>) { static_assert(N == 0, ""); } // expected-note 1 {{candidate}} in D() 59 D(std::initializer_list<double>) { static_assert(N == 1, ""); } // expected-note 1 {{candidate}} in D() 153 G(std::initializer_list<int>, T ...); // expected-note 3 {{not viable}} 205 void f(std::initializer_list<S>); 251 command_map(std::initializer_list<command_pair>); 260 const std::initializer_list<generator_pair> x = {{{{{3, 4}}}}}; [all …]
|
D | cxx0x-initializer-scalars.cpp | 11 class initializer_list class 16 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 30 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 110 one f(std::initializer_list<int>); in test()
|
/external/clang/test/CodeGenCXX/ |
D | cxx0x-initializer-stdinitializerlist.cpp | 8 class initializer_list class 13 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 27 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 46 wantslist1(std::initializer_list<destroyme1>); 52 std::initializer_list<int> globalInitList1 = {1, 2, 3}; 61 std::initializer_list<int> thread_local x = { 1, 2, 3, 4 }; 97 std::initializer_list<witharg1> globalInitList2 = { 118 std::initializer_list<int> intlist{1, 2, i}; in fn1() 123 void target(std::initializer_list<destroyme1>); in fn2() 143 void target(std::initializer_list<witharg1>); in fn4() [all …]
|
D | PR24289.cpp | 5 struct initializer_list { struct 9 constexpr initializer_list(const T *B, __SIZE_TYPE__ S) in initializer_list() function 15 static std::initializer_list<std::initializer_list<int>> a{ in f() argument 17 static std::initializer_list<std::initializer_list<int>> b{ in f() 19 static std::initializer_list<std::initializer_list<int>> c{ in f() 21 static std::initializer_list<std::initializer_list<int>> d{ in f() 23 static std::initializer_list<std::initializer_list<int>> e{ in f()
|
D | cxx0x-initializer-stdinitializerlist-startend.cpp | 8 class initializer_list class 13 initializer_list(const _E* __b, const _E* __e) in initializer_list() function in std::initializer_list 27 initializer_list() : __begin_(nullptr), __end_(nullptr) {} in initializer_list() function in std::initializer_list 37 std::initializer_list<int> globalInitList1 = {1, 2, 3}; 57 std::initializer_list<int> intlist{1, 2, i}; in fn1() 70 void target(std::initializer_list<destroyme1>); in fn2()
|
D | cxx0x-initializer-stdinitializerlist-pr12086.cpp | 10 class initializer_list class 19 constexpr initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 38 constexpr initializer_list() : __begin_(nullptr), __end_(nullptr) {} in initializer_list() function in std::initializer_list 44 constexpr initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 54 std::initializer_list<std::initializer_list<int>> nested = {
|
/external/clang/test/CXX/drs/ |
D | dr15xx.cpp | 56 class initializer_list class 61 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 73 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 151 void f0(std::initializer_list<int>); // #00 156 void f1(std::initializer_list<long>); // #2 161 void f2(std::initializer_list<std::string>); // #4 166 void f0(std::initializer_list<int>); // #00 expected-note {{candidate function}} 167 void f0(std::initializer_list<int>, int = 0); // Makes selection of #00 ambiguous \ 172 void f1(std::initializer_list<long>); // #2 expected-note {{candidate function}} 173 void f1(std::initializer_list<long>, int = 0); // Makes selection of #00 ambiguous \ [all …]
|
D | dr9xx.cpp | 13 template<typename T> struct initializer_list { struct 15 initializer_list(const T *p, size_t n); 22 A(std::initializer_list<int>); // expected-note {{candidate}} argument 34 C(std::initializer_list<int>) = delete; // expected-note {{here}} 41 D(std::initializer_list<int>); 42 D(std::initializer_list<double>);
|
D | dr10xx.cpp | 11 template<typename T> struct initializer_list { struct 13 initializer_list(const T *p, size_t n); 38 A(std::initializer_list<int>); 46 std::initializer_list<int> a; 48 std::initializer_list<double> c;
|
/external/libcxx/include/ |
D | initializer_list | 2 //===----------------------- initializer_list -----------------------------===// 15 initializer_list synopsis 21 class initializer_list 32 initializer_list() noexcept; // constexpr in C++14 39 template<class E> const E* begin(initializer_list<E> il) noexcept; // constexpr in C++14 40 template<class E> const E* end(initializer_list<E> il) noexcept; // constexpr in C++14 59 class _LIBCPP_TEMPLATE_VIS initializer_list 66 initializer_list(const _Ep* __b, size_t __s) _NOEXCEPT 81 initializer_list() _NOEXCEPT : __begin_(nullptr), __size_(0) {} 100 begin(initializer_list<_Ep> __il) _NOEXCEPT [all …]
|
D | module.modulemap | 215 export initializer_list 224 export initializer_list 256 export initializer_list 265 export initializer_list 280 module initializer_list { 281 header "initializer_list" 320 export initializer_list 329 export initializer_list 359 export initializer_list 364 export initializer_list [all …]
|
/external/libcxx/test/std/language.support/support.initlist/ |
D | types.pass.cpp | 30 static_assert((std::is_same<std::initializer_list<A>::value_type, A>::value), ""); in main() 31 static_assert((std::is_same<std::initializer_list<A>::reference, const A&>::value), ""); in main() 32 static_assert((std::is_same<std::initializer_list<A>::const_reference, const A&>::value), ""); in main() 33 static_assert((std::is_same<std::initializer_list<A>::size_type, std::size_t>::value), ""); in main() 34 static_assert((std::is_same<std::initializer_list<A>::iterator, const A*>::value), ""); in main() 35 static_assert((std::is_same<std::initializer_list<A>::const_iterator, const A*>::value), ""); in main()
|
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
D | p3.cpp | 10 struct initializer_list struct 14 initializer_list(const E *p, size_t n) : p(p), n(n) {} in initializer_list() function 43 S(std::initializer_list<double> d) {} in S() 44 S(std::initializer_list<int> i) {} in S() 55 Map(std::initializer_list<std::pair<std::string,int>>) {} in Map() 79 S(std::initializer_list<double>) {} in S() 101 B(std::initializer_list<int> i) {} in B() 125 std::initializer_list<MoveOnly> &&list3 = {}; in test()
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ |
D | initializer_list.pass.cpp | 50 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} in Y() 63 Z(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) in Z() 73 static_assert(!std::is_constructible<X, std::initializer_list<int>&>::value, ""); in main() 74 static_assert(!std::is_constructible<optional<X>, std::initializer_list<int>&>::value, ""); in main() 89 static_assert(std::is_constructible<optional<Y>, std::initializer_list<int>&>::value, ""); in main() 97 constexpr test_constexpr_ctor(in_place_t, std::initializer_list<int> i) in main() 104 static_assert(std::is_constructible<optional<Z>, std::initializer_list<int>&>::value, ""); in main()
|
/external/clang/test/CodeGenObjCXX/ |
D | arc-cxx11-init-list.mm | 13 class initializer_list { 17 initializer_list(const _Ep* __b, size_t __s); 25 void function(std::initializer_list<I *>); 41 std::initializer_list<id> foo1() { 45 // CHECK: define void @_Z4foo1v(%"class.std::initializer_list.0"* {{.*}} %[[AGG_RESULT:.*]]) 46 …[[BEGIN:.*]] = getelementptr inbounds %"class.std::initializer_list.0", %"class.std::initializer_l… 48 …%[[SIZE:.*]] = getelementptr inbounds %"class.std::initializer_list.0", %"class.std::initializer_l… 63 std::initializer_list<I *> il = { [I new] };
|
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/ |
D | initializer_list.pass.cpp | 50 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} in Y() 63 Z(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) in Z() 73 static_assert(!std::is_constructible<X, std::initializer_list<int>&>::value, ""); in main() 74 static_assert(!std::is_constructible<optional<X>, std::initializer_list<int>&>::value, ""); in main() 89 static_assert(std::is_constructible<optional<Y>, std::initializer_list<int>&>::value, ""); in main() 97 constexpr test_constexpr_ctor(in_place_t, std::initializer_list<int> i) in main() 106 static_assert(std::is_constructible<optional<Z>, std::initializer_list<int>&>::value, ""); in main()
|
/external/libcxx/test/std/utilities/any/any.class/any.cons/ |
D | in_place_type.pass.cpp | 99 assertArgsMatch<Type, std::initializer_list<int>>(a); in test_in_place_type_tracked() 104 assertArgsMatch<Type, std::initializer_list<int>, int&>(a); in test_in_place_type_tracked() 139 using IL = std::initializer_list<int>; in test_ctor_sfinae() 152 NoCopy(std::initializer_list<int>, int) {} in test_ctor_sfinae() 156 using IL = std::initializer_list<int>; in test_ctor_sfinae() 169 Implicit(std::initializer_list<int>, int) {} in Implicit() 179 static_assert(!test_convertible<std::any, IT, std::initializer_list<int>&, int>(), ""); in test_constructor_explicit() 180 static_assert(std::is_constructible<std::any, IT, std::initializer_list<int>&, int>::value, ""); in test_constructor_explicit()
|
/external/clang/test/Index/ |
D | annotate-tokens-cxx0x.cpp | 32 class initializer_list class 37 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list 51 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list 60 Foo(std::initializer_list<int> il);
|
/external/clang/test/Modules/Inputs/initializer_list/ |
D | direct.h | 4 template<typename T> struct initializer_list { struct 5 initializer_list(T*, size_t); 8 template<typename T> int min(initializer_list<T>);
|
/external/libcxx/test/std/utilities/any/any.nonmembers/ |
D | make_any.pass.cpp | 82 assertArgsMatch<Type, std::initializer_list<int>>(a); in test_make_any_type_tracked() 87 assertArgsMatch<Type, std::initializer_list<int>, int&>(a); in test_make_any_type_tracked() 95 SmallThrows(std::initializer_list<int>, int) { throw 42; } in SmallThrows() 101 LargeThrows(std::initializer_list<int>, int) { throw 42; } in LargeThrows()
|
/external/libcxx/test/std/iterators/iterator.container/ |
D | data.pass.cpp | 35 void test_const_container( const std::initializer_list<T>& c ) in test_const_container() 47 void test_container( std::initializer_list<T>& c) in test_container() 62 std::initializer_list<int> il = { 4 }; in main()
|
D | empty.pass.cpp | 35 void test_const_container( const std::initializer_list<T>& c ) in test_const_container() 47 void test_container( std::initializer_list<T>& c ) in test_container() 63 std::initializer_list<int> il = { 4 }; in main()
|
D | size.pass.cpp | 34 void test_const_container( const std::initializer_list<T>& c) in test_const_container() 46 void test_container( std::initializer_list<T>& c ) in test_container() 62 std::initializer_list<int> il = { 4 }; in main()
|
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/ |
D | indexing.pass.cpp | 28 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() 38 void dyn_test ( dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test() 49 void test ( std::initializer_list<T> vals ) { in test()
|