zig/test/behavior/bugs/3468.zig

8 lines
112 B
Zig

// zig fmt: off
test "pointer deref next to assignment" {
var a:i32=2;
var b=&a;
b.*=3;
_=&b;
}