Home
last modified time | relevance | path

Searched refs:from_address (Results 1 – 25 of 75) sorted by relevance

123

/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/
H A Dfrom_address.pass.cpp28 C c = C::from_address(nullptr); in do_test()
29 static_assert(noexcept(C::from_address(nullptr)), ""); in do_test()
30 static_assert(std::is_same<decltype(C::from_address(nullptr)), C>::value, ""); in do_test()
35 C c = C::from_address((void*)&dummy); in do_test()
39 TEST_IGNORE_NODISCARD C::from_address((int*)nullptr); in do_test() member in do_test::C
40 TEST_IGNORE_NODISCARD C::from_address((void*)nullptr); in do_test() member in do_test::C
41 TEST_IGNORE_NODISCARD C::from_address((char*)nullptr); in do_test() member in do_test::C
45 C c = C::from_address(&dummy); in do_test()
47 std::coroutine_handle<> c2 = std::coroutine_handle<>::from_address(p); in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/
H A Dfrom_address.fail.cpp33 H::from_address((int*)nullptr); // expected-note {{requested here}} in main()
34 H::from_address((const void*)nullptr); // expected-note {{requested here}} in main()
35 H::from_address((const char*)nullptr); // expected-note {{requested here}} in main()
40 H::from_address((const char*)nullptr); // expected-note {{requested here}} in main()
42 H::from_address((int*)nullptr); // expected-note {{requested here}} in main()
H A Dfrom_address.pass.cpp29 C c = C::from_address(nullptr); in do_test()
30 static_assert(noexcept(C::from_address(nullptr)), ""); in do_test()
32 static_assert(std::is_same<decltype(C::from_address(nullptr)), C>::value, ""); in do_test()
37 C c = C::from_address((void*)&dummy); in do_test()
/llvm-project-15.0.7/libcxx/include/experimental/
H A Dcoroutine133 static coroutine_handle from_address(void* __addr) _NOEXCEPT {
139 // FIXME: Should from_address(nullptr) be allowed?
141 static coroutine_handle from_address(nullptr_t) _NOEXCEPT {
146 static coroutine_handle from_address(_Tp*) {
148 "coroutine_handle<void>::from_address cannot be called with "
213 static coroutine_handle from_address(void* __addr) _NOEXCEPT {
220 // the deleted _Promise* overload doesn't make from_address(nullptr)
222 // FIXME: should from_address work with nullptr?
224 static coroutine_handle from_address(nullptr_t) _NOEXCEPT {
229 static coroutine_handle from_address(_Tp*) {
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcoroutine-seh.cpp7 static coroutine_handle from_address(void *) noexcept;
10 static coroutine_handle from_address(void *) noexcept;
H A Dcoroutine-seh-exp-namespace.cpp8 static coroutine_handle from_address(void *) noexcept;
11 static coroutine_handle from_address(void *) noexcept;
/llvm-project-15.0.7/clang/test/CoverageMapping/
H A Dcoroutine.cpp10 static coroutine_handle from_address(void *) noexcept { return {}; } in from_address() function
14 static coroutine_handle from_address(void *) { return {}; } in from_address() function
/llvm-project-15.0.7/clang/test/SemaCXX/Inputs/
H A Dstd-coroutine.h12 static coroutine_handle from_address(void *) noexcept;
18 static coroutine_handle from_address(void *);
H A Dstd-coroutine-exp-namespace.h12 static coroutine_handle from_address(void *) noexcept;
18 static coroutine_handle from_address(void *);
/llvm-project-15.0.7/clang/test/CodeGenCoroutines/
H A Dcoro-return.cpp8 static coroutine_handle from_address(void *) noexcept { return {}; } in from_address() function
11 static coroutine_handle from_address(void *) { return {}; } in from_address() function
H A Dcoro-return-exp-namespace.cpp8 static coroutine_handle from_address(void *) noexcept { return {}; } in from_address() function
11 static coroutine_handle from_address(void *) { return {}; } in from_address() function
H A Dcoro-cleanup-exp-namespace.cpp9 static coroutine_handle from_address(void *) noexcept;
12 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-eh-cleanup.cpp12 static coroutine_handle from_address(void *) noexcept;
19 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-gro.cpp10 static coroutine_handle from_address(void *) noexcept;
13 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-cleanup.cpp9 static coroutine_handle from_address(void *) noexcept;
12 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-gro-exp-namespace.cpp10 static coroutine_handle from_address(void *) noexcept;
13 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-eh-cleanup-exp-namespace.cpp12 static coroutine_handle from_address(void *) noexcept;
19 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-lambda-exp-namespace.cpp11 static coroutine_handle from_address(void *) noexcept;
18 static coroutine_handle from_address(void *) noexcept;
H A Dcoro-lambda.cpp11 static coroutine_handle from_address(void *) noexcept;
18 static coroutine_handle from_address(void *) noexcept;
/llvm-project-15.0.7/clang/test/CodeGenCoroutines/Inputs/
H A Dcoroutine.h13 static coroutine_handle from_address(void *addr) noexcept {
39 static coroutine_handle from_address(void *addr) noexcept {
73 return coroutine_handle<>::from_address(address());
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dubsan-coroutines.cpp12 static coroutine_handle from_address(void *) noexcept;
19 static coroutine_handle from_address(void *) noexcept;
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
H A Dequal_comp.pass.cpp29 const C LHS = C::from_address(LHSVal); in do_test()
30 const C RHS = C::from_address(RHSVal); in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/
H A Dequal_comp.pass.cpp31 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test()
32 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
/llvm-project-15.0.7/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
H A Dhash.pass.cpp36 const C LHS = C::from_address(reinterpret_cast<void*>(LHSVal)); in do_test()
37 const C RHS = C::from_address(reinterpret_cast<void*>(RHSVal)); in do_test()
/llvm-project-15.0.7/libcxx/test/std/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/
H A Dhash.pass.cpp35 const C LHS = C::from_address(LHSVal); in do_test()
36 const C RHS = C::from_address(RHSVal); in do_test()

123