mirror of
https://github.com/ziglang/zig.git
synced 2024-11-14 16:13:24 +00:00
12 lines
228 B
Zig
12 lines
228 B
Zig
const c = @cImport({
|
|
// See https://github.com/ziglang/zig/issues/515
|
|
@cDefine("_NO_CRT_STDIO_INLINE", "1");
|
|
@cInclude("stdio.h");
|
|
});
|
|
pub fn main() void {
|
|
_ = c.printf("hello\n");
|
|
}
|
|
|
|
// exe=succeed
|
|
// link_libc
|