mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Change printfln to printfn. Make LLVM 15 tests default.
This commit is contained in:
committed by
Christoffer Lerno
parent
3298ff2e15
commit
dc16f65c8e
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user