mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 22:34:28 +00:00
Adds a linker tests to verify extern/undefined symbols representing non-functions are being resolved correctly.
8 lines
176 B
Zig
8 lines
176 B
Zig
const std = @import("std");
|
|
|
|
extern const foo: u32;
|
|
|
|
pub fn main() void {
|
|
const std_out = std.io.getStdOut();
|
|
std_out.writer().print("Result: {d}", .{foo}) catch {};
|
|
}
|