mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Allow @test with modules. Change name mangling for non exports.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user