zig/test/cases/llvm/hello_world.zig
Andrew Kelley 171977dc1c test-cases: fix incorrectly linking libc when backend is llvm
Now link_libc=1 must be used to link with libc, instead of the test
harness assuming that using the llvm backend means additionally linking
with libc.
2023-03-15 10:48:15 -07:00

14 lines
191 B
Zig

extern fn puts(s: [*:0]const u8) c_int;
pub fn main() void {
_ = puts("hello world!");
}
// run
// backend=llvm
// target=x86_64-linux,x86_64-macos
// link_libc=1
//
// hello world!
//