-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviormiscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Milestone
Description
Zig Version
0.12.0-dev.2784+075e9564c
Steps to Reproduce and Observed Behavior
test {
var v :?usize = null;
v = 4;
var ref : usize = 4;
_ = &ref;
if (v!=ref) @panic("boom");
}fails with zig test repro.zig -target x86_64-linux-none -fno-llvm -fno-lld
but passes with zig test repro.zig -target x86_64-linux-none
Expected Behavior
the test passes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviormiscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.