zig/test/standalone
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
..
2024-05-05 09:42:51 -04:00
2024-05-05 09:42:51 -04:00
2024-05-13 08:55:27 +02:00
2024-05-05 09:42:51 -04:00
2024-05-05 09:42:51 -04:00
2024-05-05 09:42:51 -04:00