Translate-C works with some pointer arithmetic syntax, but not semantically equivalent one #22925
Labels
bug
Observed behavior contradicts documented or intended behavior
translate-c
C to Zig source translation feature (@cImport)
Zig Version
0.14.0-dev.2851+b074fb7dd
Steps to Reproduce and Observed Behavior
These two printf lines are semantically equivalent in C, but Translate-C produces different zig code for them, the second of which doesn't compile.
results in zig errors from the second printf:
Expected Behavior
Should result in zig code that compiles and runs and produces the same two-duplicate-lines as the C code does:
The text was updated successfully, but these errors were encountered: