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

@@ -21,14 +21,15 @@ fn int extract_or_test_files()
return 0;
}
// #expect: test.ll
/* #expect: test.ll
%UzGlobs = type { i8, [1 x %MinInfo], %MinInfo* }
%UzGlobs = type { i8, [1 x %MinInfo], ptr }
%MinInfo = type { i64, i32 }
@g = external global %UzGlobs, align 8
entry:
store %MinInfo* getelementptr inbounds (%UzGlobs, %UzGlobs* @g, i32 0, i32 1, i32 0), %MinInfo** getelementptr inbounds (%UzGlobs, %UzGlobs* @g, i32 0, i32 2), align 8
store ptr getelementptr inbounds (%UzGlobs, ptr @g, i32 0, i32 1), ptr getelementptr inbounds (%UzGlobs, ptr @g, i32 0, i32 2), align 8
ret i32 0
}
}

View File

@@ -16,7 +16,7 @@ fn void test()
define void @abc_test() #0 {
entry:
%x = alloca i32, align 4
%0 = load i32, i32* @abc_foo, align 32
store i32 %0, i32* %x, align 4
%0 = load i32, ptr @abc_foo, align 32
store i32 %0, ptr %x, align 4
ret void
}

View File

@@ -1 +1 @@
static int ifej; // #error: 'static' can only used with local variables
static int ifej; // #error: 'static' can only used with local variables, to hide global variables