zig/test/link/wasm/extern/main.zig
Luuk de Gram 8627858bbc
test/link: add test for extern resolution
Adds a linker tests to verify extern/undefined symbols
representing non-functions are being resolved correctly.
2022-08-30 18:32:08 +02:00

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 {};
}