mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix issue with naked functions #2365
This commit is contained in:
@@ -9,6 +9,9 @@ fn void start() @export("_start") @naked @nostrip {
|
||||
}
|
||||
}
|
||||
|
||||
fn void foo(char a) @naked @nostrip { }
|
||||
|
||||
|
||||
/* #expect: testing.ll
|
||||
|
||||
define void @_start() #0 {
|
||||
@@ -17,3 +20,9 @@ entry:
|
||||
unreachable
|
||||
}
|
||||
|
||||
; Function Attrs: naked nounwind uwtable
|
||||
define void @testing.foo(i8 zeroext %0) #0 {
|
||||
entry:
|
||||
unreachable
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user