mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Updated mangling and bump to 0.2.18
This commit is contained in:
committed by
Christoffer Lerno
parent
4afec24434
commit
d3a053e049
@@ -18,15 +18,15 @@ fn void main()
|
||||
|
||||
// #expect: demo.ll
|
||||
|
||||
define i32 @demo.my_callback(i8* %0, i32 %1) #0 {
|
||||
define i32 @demo_my_callback(i8* %0, i32 %1) #0 {
|
||||
entry:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define void @demo.main() #0 {
|
||||
define void @demo_main() #0 {
|
||||
entry:
|
||||
%result = alloca i32, align 4
|
||||
%0 = load i32 (i8*, i32)*, i32 (i8*, i32)** @demo.cb, align 8
|
||||
%0 = load i32 (i8*, i32)*, i32 (i8*, i32)** @demo_cb, align 8
|
||||
%1 = call i32 %0(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i32 123)
|
||||
store i32 %1, i32* %result, align 4
|
||||
ret void
|
||||
|
||||
Reference in New Issue
Block a user