mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
11 lines
197 B
Zig
11 lines
197 B
Zig
extern fn print(i32) void;
|
|
|
|
export fn add(a: i32, b: i32) void {
|
|
print(a + b);
|
|
}
|
|
|
|
// exe=succeed
|
|
// target=wasm32-freestanding
|
|
// additional_option=-fno-entry
|
|
// additional_option=--export=add
|