std.DynLib corrupts struct passed by value #19841
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.13.0-dev.46+3648d7df1
Steps to Reproduce and Observed Behavior
Env:
Windows 11
Version 10.0.22631 Build 22631
Repo: https://github.com/Pyrolistical/dynlib-struct-pass-by-value-repo
Run
zig build run
Outputs:
Expected Behavior
Expected DynLib to be the same as extern:
The text was updated successfully, but these errors were encountered: