zig/test/standalone/stack_iterator
Pat Tullmann e8503ecb65 Default std.posix.system.ucontext_t is void
PR https://github.com/ziglang/zig/pull/20679 ("std.c reorganization")
switched feature-detection code to use "T != void" checks in place of
"@hasDecl".  However, the std.posix.system struct is empty, so
compile-time feature detection against symbols in there (specifically
`std.posix.system.ucontext_t` in this case), fail at compile time on
freestanding targets.

This PR adds a void ucontext_t into the std.posix.system default.

This PR also adds pseudo-"freestanding" variation of the StackIterator
"unwind" test.  It is sort of hacky (its freestanding, but assumes it can
invoke a Linux exit syscall), but it does detect this problem.

Fixes #20710
2024-07-23 11:47:29 -07:00
..
build.zig Default std.posix.system.ucontext_t is void 2024-07-23 11:47:29 -07:00
shared_lib.c
shared_lib_unwind.zig test: update remaining code to fix 'var is never mutated' errors 2023-11-19 09:57:04 +00:00
unwind.zig chore: Fix some typos 2024-03-14 19:43:24 +02:00
unwind_freestanding.zig Default std.posix.system.ucontext_t is void 2024-07-23 11:47:29 -07:00