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

@@ -9,14 +9,14 @@ fn void main()
/* #expect: foo.ll
@libc_EXIT_SUCCESS = external constant i32, align 4
@libc.EXIT_SUCCESS = external constant i32, align 4
define void @foo_main() #0 {
define void @foo.main() #0 {
entry:
%foekf = alloca ptr, align 8
%xok = alloca ptr, align 8
store ptr @printf, ptr %foekf, align 8
store ptr @libc_EXIT_SUCCESS, ptr %xok, align 8
store ptr @libc.EXIT_SUCCESS, ptr %xok, align 8
ret void
}