Change printfln to printfn. Make LLVM 15 tests default.

This commit is contained in:
Christoffer Lerno
2023-01-11 17:27:54 +01:00
committed by Christoffer Lerno
parent 3298ff2e15
commit dc16f65c8e
971 changed files with 30632 additions and 30623 deletions

View File

@@ -16,9 +16,10 @@ fn void main()
// ..
}
// #expect: demo.ll
/* #expect: demo.ll
define i32 @demo_my_callback(i8* %0, i32 %1) #0 {
define i32 @demo_my_callback(ptr %0, i32 %1) #0 {
entry:
ret i32 0
}
@@ -26,8 +27,8 @@ entry:
define void @demo_main() #0 {
entry:
%result = alloca i32, align 4
%0 = load i32 (i8*, i32)*, i32 (i8*, i32)** @demo_cb, align 8
%1 = call i32 %0(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i32 123)
store i32 %1, i32* %result, align 4
%0 = load ptr, ptr @demo_cb, align 8
%1 = call i32 %0(ptr @.str, i32 123)
store i32 %1, ptr %result, align 4
ret void
}