/external/libcxx/test/std/utilities/optional/optional.syn/ |
optional_nullopt_t.fail.cpp | 26 optional<nullopt_t &> opt2; // expected-note 1 {{requested here}} local
|
/external/libcxx/test/libcxx/utilities/optional/optional.object/optional.object.ctor/ |
copy.pass.cpp | 45 constexpr optional<T> opt2 = opt; local 46 (void)opt2; 52 constexpr optional<T> opt2 = opt; local 53 (void)opt2;
|
move.pass.cpp | 46 constexpr optional<T> opt2 = std::move(opt); local 47 (void)opt2; 53 constexpr optional<T> opt2 = std::move(opt); local 54 (void)opt2;
|
/external/libcxx/test/libcxx/utilities/optional/optional.object/optional.object.assign/ |
copy.pass.cpp | 52 optional<T> opt2; local 53 opt = opt2;
|
move.pass.cpp | 49 optional<T> opt2; local 50 opt = std::move(opt2);
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/ |
copy.pass.cpp | 81 const optional<T> opt2; local 83 opt = opt2; 85 assert(!opt2.has_value()); 91 optional<X> opt2(X{}); 92 assert(static_cast<bool>(opt2) == true); 96 opt = opt2;
|
const_optional_U.pass.cpp | 206 constexpr optional<short> opt2; local 207 opt = opt2; 208 static_assert(static_cast<bool>(opt2) == false, ""); 209 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); 213 constexpr optional<short> opt2(short{2}); 214 opt = opt2; 215 static_assert(static_cast<bool>(opt2) == true, ""); 216 static_assert(*opt2 == 2, ""); 217 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); 218 assert(*opt == *opt2); 222 constexpr optional<short> opt2; local [all...] |
move.pass.cpp | 75 constexpr optional<int> opt2; local 76 opt = std::move(opt2); 77 static_assert(static_cast<bool>(opt2) == false, ""); 78 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); 82 constexpr optional<int> opt2(2); 83 opt = std::move(opt2); 84 static_assert(static_cast<bool>(opt2) == true, ""); 85 static_assert(*opt2 == 2, ""); 86 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); 87 assert(*opt == *opt2); 91 constexpr optional<int> opt2; local 100 optional<T> opt2; local [all...] |
optional_U.pass.cpp | 211 optional<short> opt2; local 212 opt = std::move(opt2); 213 assert(static_cast<bool>(opt2) == false); 214 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); 218 optional<short> opt2(short{2}); 219 opt = std::move(opt2); 220 assert(static_cast<bool>(opt2) == true); 221 assert(*opt2 == 2); 222 assert(static_cast<bool>(opt) == static_cast<bool>(opt2)); 223 assert(*opt == *opt2); 227 optional<short> opt2; local [all...] |
/external/libcxx/test/std/utilities/optional/optional.object/ |
optional_requires_destructible_object.fail.cpp | 31 optional<int&&> opt2; local
|
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.swap/ |
swap.pass.cpp | 72 optional<int> opt2; local 73 static_assert(noexcept(opt1.swap(opt2)) == true, ""); 75 assert(static_cast<bool>(opt2) == false); 76 opt1.swap(opt2); 78 assert(static_cast<bool>(opt2) == false); 82 optional<int> opt2; local 83 static_assert(noexcept(opt1.swap(opt2)) == true, ""); 86 assert(static_cast<bool>(opt2) == false); 87 opt1.swap(opt2); 89 assert(static_cast<bool>(opt2) == true) 120 optional<X> opt2; local 131 optional<X> opt2; local 175 optional<Y> opt2; local 186 optional<Y> opt2; local 230 optional<Z> opt2; local 242 optional<Z> opt2; local 262 optional<Z> opt2; local 284 optional<Z> opt2; local [all...] |
/external/libcxx/test/std/utilities/optional/optional.specalg/ |
swap.pass.cpp | 118 optional<int> opt2; local 119 static_assert(noexcept(swap(opt1, opt2)) == true, ""); 121 assert(static_cast<bool>(opt2) == false); 122 swap(opt1, opt2); 124 assert(static_cast<bool>(opt2) == false); 128 optional<int> opt2; local 129 static_assert(noexcept(swap(opt1, opt2)) == true, ""); 132 assert(static_cast<bool>(opt2) == false); 133 swap(opt1, opt2); 135 assert(static_cast<bool>(opt2) == true) 166 optional<X> opt2; local 177 optional<X> opt2; local 221 optional<Y> opt2; local 232 optional<Y> opt2; local 276 optional<Z> opt2; local 288 optional<Z> opt2; local 308 optional<Z> opt2; local 330 optional<Z> opt2; local [all...] |