/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.modifiers/ |
H A D | clear.pass.cpp | 22 std::error_code ec; local 23 ec.assign(6, std::generic_category()); 24 assert(ec.value() == 6); 25 assert(ec.category() == std::generic_category()); 26 ec.clear(); 27 assert(ec.value() == 0); 28 assert(ec.category() == std::system_category());
|
H A D | assign.pass.cpp | 22 std::error_code ec; local 23 ec.assign(6, std::system_category()); 24 assert(ec.value() == 6); 25 assert(ec.category() == std::system_category()); 28 std::error_code ec; local 29 ec.assign(8, std::generic_category()); 30 assert(ec.value() == 8); 31 assert(ec.category() == std::generic_category());
|
H A D | ErrorCodeEnum.pass.cpp | 40 std::error_code ec; local 41 ec = two; 42 assert(ec.value() == 2); 43 assert(ec.category() == std::generic_category());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/ |
H A D | clear.pass.cpp | 22 std::error_condition ec; local 23 ec.assign(6, std::system_category()); 24 assert(ec.value() == 6); 25 assert(ec.category() == std::system_category()); 26 ec.clear(); 27 assert(ec.value() == 0); 28 assert(ec.category() == std::generic_category());
|
H A D | assign.pass.cpp | 22 std::error_condition ec; local 23 ec.assign(6, std::system_category()); 24 assert(ec.value() == 6); 25 assert(ec.category() == std::system_category()); 28 std::error_condition ec; local 29 ec.assign(8, std::generic_category()); 30 assert(ec.value() == 8); 31 assert(ec.category() == std::generic_category());
|
H A D | ErrorConditionEnum.pass.cpp | 22 std::error_condition ec; local 23 ec = std::errc::not_enough_memory; 24 assert(ec.value() == static_cast<int>(std::errc::not_enough_memory)); 25 assert(ec.category() == std::generic_category());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.constructors/ |
H A D | default.pass.cpp | 21 std::error_code ec; local 22 assert(ec.value() == 0); 23 assert(ec.category() == std::system_category());
|
H A D | int_error_category.pass.cpp | 22 std::error_code ec(6, std::system_category()); 23 assert(ec.value() == 6); 24 assert(ec.category() == std::system_category()); 27 std::error_code ec(8, std::generic_category()); 28 assert(ec.value() == 8); 29 assert(ec.category() == std::generic_category());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/ |
H A D | default.pass.cpp | 21 std::error_condition ec; local 22 assert(ec.value() == 0); 23 assert(ec.category() == std::generic_category());
|
H A D | int_error_category.pass.cpp | 22 std::error_condition ec(6, std::system_category()); 23 assert(ec.value() == 6); 24 assert(ec.category() == std::system_category()); 27 std::error_condition ec(8, std::generic_category()); 28 assert(ec.value() == 8); 29 assert(ec.category() == std::generic_category());
|
H A D | ErrorConditionEnum.pass.cpp | 22 std::error_condition ec(std::errc::not_a_directory); 23 assert(ec.value() == static_cast<int>(std::errc::not_a_directory)); 24 assert(ec.category() == std::generic_category());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.observers/ |
H A D | bool.pass.cpp | 23 const std::error_code ec(6, std::generic_category()); 24 assert(static_cast<bool>(ec)); 27 const std::error_code ec(0, std::generic_category()); 28 assert(!static_cast<bool>(ec));
|
H A D | default_error_condition.pass.cpp | 22 const std::error_code ec(6, std::generic_category()); 23 std::error_condition e_cond = ec.default_error_condition(); 24 assert(e_cond == ec); 27 const std::error_code ec(6, std::system_category()); 28 std::error_condition e_cond = ec.default_error_condition(); 29 assert(e_cond == ec);
|
H A D | category.pass.cpp | 21 const std::error_code ec(6, std::generic_category()); 22 assert(ec.category() == std::generic_category());
|
H A D | value.pass.cpp | 21 const std::error_code ec(6, std::system_category()); 22 assert(ec.value() == 6);
|
H A D | message.pass.cpp | 22 const std::error_code ec(6, std::generic_category()); 23 assert(ec.message() == std::generic_category().message(6));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/ |
H A D | bool.pass.cpp | 23 const std::error_condition ec(6, std::generic_category()); 24 assert(static_cast<bool>(ec)); 27 const std::error_condition ec(0, std::generic_category()); 28 assert(!static_cast<bool>(ec));
|
H A D | category.pass.cpp | 21 const std::error_condition ec(6, std::generic_category()); 22 assert(ec.category() == std::generic_category());
|
H A D | value.pass.cpp | 21 const std::error_condition ec(6, std::system_category()); 22 assert(ec.value() == 6);
|
H A D | message.pass.cpp | 22 const std::error_condition ec(6, std::generic_category()); 23 assert(ec.message() == std::generic_category().message(6));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.device/ |
H A D | ctor.pass.cpp | 34 int ec; local 35 ec = close(STDIN_FILENO); 36 assert(!ec); 37 ec = close(STDOUT_FILENO); 38 assert(!ec); 39 ec = close(STDERR_FILENO); 40 assert(!ec);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.future_error/ |
H A D | code.pass.cpp | 22 std::error_code ec = std::make_error_code(std::future_errc::broken_promise); local 23 std::future_error f(ec); 24 assert(f.code() == ec); 27 std::error_code ec = std::make_error_code(std::future_errc::future_already_retrieved); local 28 std::future_error f(ec); 29 assert(f.code() == ec); 32 std::error_code ec = std::make_error_code(std::future_errc::promise_already_satisfied); local 33 std::future_error f(ec); 34 assert(f.code() == ec); 37 std::error_code ec local [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.errors/ |
H A D | future_category.pass.cpp | 20 const std::error_category& ec = std::future_category(); local 21 assert(std::strcmp(ec.name(), "future") == 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/ |
H A D | make_error_code.pass.cpp | 22 std::error_code ec = make_error_code(std::errc::operation_canceled); local 23 assert(ec.value() == static_cast<int>(std::errc::operation_canceled)); 24 assert(ec.category() == std::generic_category());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/iostreams.base/std.ios.manip/error.reporting/ |
H A D | make_error_code.pass.cpp | 20 std::error_code ec = make_error_code(std::io_errc::stream); local 21 assert(ec.value() == static_cast<int>(std::io_errc::stream)); 22 assert(ec.category() == std::iostream_category());
|