mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
8627858bbc
Adds a linker tests to verify extern/undefined symbols representing non-functions are being resolved correctly.
9 lines
176 B
Zig
9 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 {};
|
|
}
|