mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
18 lines
330 B
Plaintext
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
|
|
}
|
|
|