Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Constant pointers are not passing some tests #1486
I've done some testing of constant pointers and some tests I've created are failing when I expect them to pass. I'd be glad to correct any mistakes, answer any questions or create additional tests.
Below is a slightly edited version of the README.md file from this repo.
Zig const pointers
Constant pointers which alias a mutable variable
Such pairs have the following properties:
I have found the above holds when both the constant pointers, cp,
The following tests pass:
The following tests fail
Point cgp_gv at gv and mutate gv directly:
Point cgp_gv at gv mutate gv via cgp_gv.*:
Point clp_gv at gv mutate gv via clp_gv.*: