mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
17 lines
352 B
Zig
17 lines
352 B
Zig
pub fn main() void {
|
|
const number = 1234;
|
|
const x = asm volatile ("syscall"
|
|
: [o] "{rax}" (-> number),
|
|
: [number] "{rax}" (231),
|
|
[arg1] "{rdi}" (60),
|
|
: "rcx", "r11", "memory"
|
|
);
|
|
_ = x;
|
|
}
|
|
|
|
// error
|
|
// output_mode=Exe
|
|
// target=x86_64-linux
|
|
//
|
|
// :4:27: error: expected type 'type', found 'comptime_int'
|