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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user