/external/libcxx/test/std/diagnostics/syserr/ |
errc.pass.cpp | 12 // enum errc {...} 18 static_assert(static_cast<int>(std::errc::address_family_not_supported) == EAFNOSUPPORT, ""); 19 static_assert(static_cast<int>(std::errc::address_in_use) == EADDRINUSE, ""); 20 static_assert(static_cast<int>(std::errc::address_not_available) == EADDRNOTAVAIL, ""); 21 static_assert(static_cast<int>(std::errc::already_connected) == EISCONN, ""); 22 static_assert(static_cast<int>(std::errc::argument_list_too_long) == E2BIG, ""); 23 static_assert(static_cast<int>(std::errc::argument_out_of_domain) == EDOM, ""); 24 static_assert(static_cast<int>(std::errc::bad_address) == EFAULT, ""); 25 static_assert(static_cast<int>(std::errc::bad_file_descriptor) == EBADF, ""); 26 static_assert(static_cast<int>(std::errc::bad_message) == EBADMSG, "") [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/ |
errc.pass.cpp | 12 // enum errc {...} 18 static_assert(static_cast<int>(std::errc::address_family_not_supported) == EAFNOSUPPORT, ""); 19 static_assert(static_cast<int>(std::errc::address_in_use) == EADDRINUSE, ""); 20 static_assert(static_cast<int>(std::errc::address_not_available) == EADDRNOTAVAIL, ""); 21 static_assert(static_cast<int>(std::errc::already_connected) == EISCONN, ""); 22 static_assert(static_cast<int>(std::errc::argument_list_too_long) == E2BIG, ""); 23 static_assert(static_cast<int>(std::errc::argument_out_of_domain) == EDOM, ""); 24 static_assert(static_cast<int>(std::errc::bad_address) == EFAULT, ""); 25 static_assert(static_cast<int>(std::errc::bad_file_descriptor) == EBADF, ""); 26 static_assert(static_cast<int>(std::errc::bad_message) == EBADMSG, "") [all...] |
/external/llvm/include/llvm/Support/ |
Errc.h | 1 //===- llvm/Support/Errc.h - Defines the llvm::errc enum --------*- C++ -*-===// 11 // some problems with std::errc that can be avoided by using our own 14 // * std::errc is a namespace in some implementations. That meas that ADL 25 // * std::errc is just marked with is_error_condition_enum. This means that 26 // common patters like AnErrorCode == errc::no_such_file_or_directory take 36 enum class errc { class in namespace:llvm 37 argument_list_too_long = int(std::errc::argument_list_too_long), 38 argument_out_of_domain = int(std::errc::argument_out_of_domain), 39 bad_address = int(std::errc::bad_address) [all...] |
/external/libcxx/test/std/experimental/utilities/syserror/header.system_error.synop/ |
is_error_condition_enum.pass.cpp | 22 static_assert(ex::is_error_condition_enum_v<std::errc>, ""); 24 static_assert(ex::is_error_condition_enum_v<std::errc> == 25 std::is_error_condition_enum <std::errc>::value, ""); 28 std::is_same<decltype(ex::is_error_condition_enum_v<std::errc>),
|
/external/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/ |
make_error_code.pass.cpp | 14 // error_code make_error_code(errc e); 22 std::error_code ec = make_error_code(std::errc::operation_canceled); 23 assert(ec.value() == static_cast<int>(std::errc::operation_canceled));
|
/external/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.nonmembers/ |
make_error_condition.pass.cpp | 14 // error_condition make_error_condition(errc e); 22 const std::error_condition ec1 = std::make_error_condition(std::errc::message_size); 23 assert(ec1.value() == static_cast<int>(std::errc::message_size));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/ |
make_error_code.pass.cpp | 14 // error_code make_error_code(errc e); 22 std::error_code ec = make_error_code(std::errc::operation_canceled); 23 assert(ec.value() == static_cast<int>(std::errc::operation_canceled));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.nonmembers/ |
make_error_condition.pass.cpp | 14 // error_condition make_error_condition(errc e); 22 const std::error_condition ec1 = std::make_error_condition(std::errc::message_size); 23 assert(ec1.value() == static_cast<int>(std::errc::message_size));
|
/external/libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.virtuals/ |
default_error_condition.pass.cpp | 22 std::error_condition e_cond = e_cat.default_error_condition(static_cast<int>(std::errc::not_a_directory)); 24 assert(e_cond.value() == static_cast<int>(std::errc::not_a_directory));
|
/external/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/ |
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));
|
/external/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/ |
ErrorConditionEnum.pass.cpp | 23 ec = std::errc::not_enough_memory; 24 assert(ec.value() == static_cast<int>(std::errc::not_enough_memory));
|
/external/valgrind/drd/tests/ |
std_thread.cpp | 53 throw system_error(make_error_code(errc::operation_not_permitted), 56 __throw_system_error(int(errc::operation_not_permitted));
|
std_thread2.cpp | 58 throw system_error(make_error_code(errc::operation_not_permitted), 61 __throw_system_error(int(errc::operation_not_permitted));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcat/syserr.errcat.virtuals/ |
default_error_condition.pass.cpp | 22 std::error_condition e_cond = e_cat.default_error_condition(static_cast<int>(std::errc::not_a_directory)); 24 assert(e_cond.value() == static_cast<int>(std::errc::not_a_directory));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/ |
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));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/ |
ErrorConditionEnum.pass.cpp | 23 ec = std::errc::not_enough_memory; 24 assert(ec.value() == static_cast<int>(std::errc::not_enough_memory));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.errors/ |
default_error_condition.pass.cpp | 22 std::error_condition e_cond = e_cat.default_error_condition(static_cast<int>(std::errc::not_a_directory)); 24 assert(e_cond.value() == static_cast<int>(std::errc::not_a_directory));
|
/external/llvm/unittests/Support/ |
ErrorOrTest.cpp | 11 #include "llvm/Support/Errc.h" 20 ErrorOr<int> t2() { return errc::invalid_argument; } 34 EXPECT_EQ(a.getError(), errc::invalid_argument); 70 ErrorOr<int> x(errc::no_such_file_or_directory); 71 EXPECT_EQ(x, errc::no_such_file_or_directory);
|
/external/libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ |
ctor_error_code.pass.cpp | 24 std::system_error se(static_cast<int>(std::errc::not_a_directory), 26 assert(se.code() == std::make_error_code(std::errc::not_a_directory));
|
ctor_error_code_const_char_pointer.pass.cpp | 25 std::system_error se(make_error_code(std::errc::not_a_directory), what_arg.c_str()); 26 assert(se.code() == std::make_error_code(std::errc::not_a_directory));
|
ctor_error_code_string.pass.cpp | 25 std::system_error se(make_error_code(std::errc::not_a_directory), what_arg); 26 assert(se.code() == std::make_error_code(std::errc::not_a_directory));
|
ctor_int_error_category.pass.cpp | 24 std::system_error se(static_cast<int>(std::errc::not_a_directory), 26 assert(se.code() == std::make_error_code(std::errc::not_a_directory));
|
ctor_int_error_category_const_char_pointer.pass.cpp | 25 std::system_error se(static_cast<int>(std::errc::not_a_directory), 27 assert(se.code() == std::make_error_code(std::errc::not_a_directory));
|
ctor_int_error_category_string.pass.cpp | 25 std::system_error se(static_cast<int>(std::errc::not_a_directory), 27 assert(se.code() == std::make_error_code(std::errc::not_a_directory));
|
/external/libcxx/test/std/thread/futures/futures.errors/ |
default_error_condition.pass.cpp | 24 std::error_condition e_cond = e_cat.default_error_condition(static_cast<int>(std::errc::not_a_directory)); 26 assert(e_cond.value() == static_cast<int>(std::errc::not_a_directory));
|