llvm/ir-test/ir-test.ll

11 lines
217 B
LLVM

target triple = "x86_64-pc-linux-gnu"
@str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
declare i32 @puts(ptr nocapture) nounwind
define i32 @main() {
call i32 @puts(ptr @str)
ret i32 0
}