mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 01:03:13 +00:00
14 lines
216 B
Zig
14 lines
216 B
Zig
export fn a() void {
|
|
x += 1;
|
|
}
|
|
export fn b() void {
|
|
x += 1;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:5: error: use of undeclared identifier 'x'
|
|
// :5:5: error: use of undeclared identifier 'x'
|