zig/test/cases/hello_world.zig
Alex Rønne Petersen 4dba253cd2
test: pull tests in test/cases/llvm/ up to test/cases/
There is nothing inherently LLVM-specific about any of these.
2025-09-16 23:39:29 +02:00

14 lines
205 B
Zig

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