mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 19:53:06 +00:00
13 lines
196 B
Zig
13 lines
196 B
Zig
export fn foo() void {
|
|
var x: i32 = 1234;
|
|
x += 1;
|
|
_ = x;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :4:9: error: pointless discard of local variable
|
|
// :3:5: note: used here
|