/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() 152 G(std::initializer_list<int>, T ...); // expected-note 3 {{not viable}} 204 void f(std::initializer_list<S>); 247 command_map(std::initializer_list<command_pair>); 256 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()
|
D | scope-check.cpp | 331 template<typename T> struct initializer_list { struct 334 initializer_list(const T *, size_t); 344 …std::initializer_list<A> il = { a }; // expected-note {{jump exits scope of lifetime-extended temp… in f() argument 359 std::initializer_list<B> il = { in f() 369 std::initializer_list<B> il = { in g()
|
/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 }; 94 std::initializer_list<witharg1> globalInitList2 = { 115 std::initializer_list<int> intlist{1, 2, i}; in fn1() 120 void target(std::initializer_list<destroyme1>); in fn2() 140 void target(std::initializer_list<witharg1>); in fn4() [all …]
|
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/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_TYPE_VIS_ONLY 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 …]
|
/external/clang/test/CXX/drs/ |
D | dr9xx.cpp | 12 template<typename T> struct initializer_list { struct 14 initializer_list(const T *p, size_t n); 21 A(std::initializer_list<int>); // expected-note {{candidate}} argument 33 C(std::initializer_list<int>) = delete; // expected-note {{here}} 40 D(std::initializer_list<int>); 41 D(std::initializer_list<double>);
|
D | dr10xx.cpp | 10 template<typename T> struct initializer_list { struct 12 initializer_list(const T *p, size_t n); 19 A(std::initializer_list<int>); argument 27 std::initializer_list<int> a; 29 std::initializer_list<double> c;
|
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
D | p3-0x.cpp | 7 struct initializer_list // expected-note 2{{candidate}} struct 11 initializer_list(const E *p, size_t n) : p(p), n(n) {} in initializer_list() argument 40 S(std::initializer_list<double> d) {} in S() 41 S(std::initializer_list<int> i) {} in S() 52 Map(std::initializer_list<std::pair<std::string,int>>) {} in Map() 76 S(std::initializer_list<double>) {} in S() 98 B(std::initializer_list<int> i) {} in B() 123 std::initializer_list<MoveOnly> &&list3 = {}; in test()
|
/external/libcxx/test/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/libcxx/test/utilities/optional/optional.object/optional.object.ctor/ |
D | initializer_list.pass.cpp | 49 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} in Y() 62 constexpr Z(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) in Z() 76 static_assert(!std::is_constructible<X, std::initializer_list<int>&>::value, ""); in main() 77 static_assert(!std::is_constructible<optional<X>, std::initializer_list<int>&>::value, ""); in main() 92 static_assert(std::is_constructible<optional<Y>, std::initializer_list<int>&>::value, ""); in main() 100 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() 120 constexpr test_constexpr_ctor(in_place_t, std::initializer_list<int> i) in main()
|
/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/ |
D | initializer_list | 4 template<typename T> struct initializer_list { 5 initializer_list(T*, size_t); 8 template<typename T> int min(initializer_list<T>);
|
/external/clang/test/Parser/ |
D | objcxx0x-lambda-expressions.mm | 24 [foo{bar}] () {}; // expected-error {{<initializer_list>}} 25 [foo = {bar}] () {}; // expected-error {{<initializer_list>}} 37 …[foo = { bar, baz }]; // expected-error {{<initializer_list>}} expected-error {{expected body of l… 39 …[foo = { bar }, baz ]; // expected-error {{<initializer_list>}} expected-error {{expected body of …
|
/external/libcxx/test/containers/sequences/dynarray/dynarray.overview/ |
D | indexing.pass.cpp | 29 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() 39 void dyn_test ( dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test() 50 void test ( std::initializer_list<T> vals ) { in test()
|
D | at.pass.cpp | 44 void dyn_test_const ( const dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test_const() 58 void dyn_test ( dynarray<T> &dyn, const std::initializer_list<T> &vals ) { in dyn_test() 73 void test ( std::initializer_list<T> vals ) { in test()
|
/external/libcxx/test/language.support/support.initlist/support.initlist.cons/ |
D | default.pass.cpp | 22 std::initializer_list<A> il; in main() 26 constexpr std::initializer_list<A> il2; in main()
|
/external/libcxx/test/utilities/optional/optional.object/optional.object.assign/ |
D | emplace_initializer_list.pass.cpp | 32 constexpr X(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} in X() 48 constexpr Y(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) {} in Y() 62 constexpr Z(std::initializer_list<int> il) : i_(il.begin()[0]), j_(il.begin()[1]) in Z()
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
D | p4.cpp | 46 namespace std { template<typename T> struct initializer_list { initializer_list(); }; } struct
|
D | p7-1y.cpp | 4 template<typename T> struct initializer_list { struct 7 initializer_list(const T *p, unsigned long n); 17 using InitListInt = std::initializer_list<int>; argument
|
/external/libcxx/test/containers/sequences/array/array.cons/ |
D | Android.mk | 23 test_name := containers/sequences/array/array.cons/initializer_list 24 test_src := initializer_list.pass.cpp
|
/external/clang/test/Preprocessor/ |
D | macro_with_initializer_list.cpp | 5 class initializer_list { class 7 initializer_list(); 14 Foo(std::initializer_list<int>);
|
/external/libcxx/test/language.support/support.initlist/support.initlist.range/ |
D | begin_end.pass.cpp | 21 A(std::initializer_list<int> il) in A() 36 constexpr B(std::initializer_list<int> il) in B()
|