Files
c3c/test/test_suite/asm/syscall.c3t
2025-07-28 18:36:33 +02:00

18 lines
330 B
Plaintext

// #target: macos-x64
module testing;
fn void start() @export("_start") @naked @nostrip {
asm {
syscall;
}
}
/* #expect: testing.ll
define void @_start() #0 {
entry:
call void asm sideeffect alignstack "syscall \0A", "~{cc},~{rax},~{rcx},~{r11},~{flags},~{dirflag},~{fspr}"()
unreachable
}