Allow @test with modules. Change name mangling for non exports.

This commit is contained in:
Christoffer Lerno
2023-02-20 16:02:30 +01:00
parent d35d50555e
commit e3416a1c40
282 changed files with 1954 additions and 1987 deletions

View File

@@ -10,7 +10,7 @@ fn void main()
/* #expect: foo.ll
define void @foo_main() #0 {
define void @foo.main() #0 {
entry:
%x = alloca ptr, align 8
%y = alloca i32, align 4
@@ -20,7 +20,7 @@ entry:
br i1 %checknull, label %panic, label %checkok
panic: ; preds = %entry
%1 = load ptr, ptr @std_core_builtin_panic, align 8
%1 = load ptr, ptr @std_core_builtin.panic, align 8
call void %1(ptr @.panic_msg, i64 27, ptr @.file, i64 8, ptr @.func, i64 4, i32 6)
br label %checkok