zig/test/cases/x86_64-linux/inline_assembly.3.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

13 lines
199 B
Zig

pub fn main() void {}
comptime {
asm (""
:
: [bruh] "{rax}" (4),
: "memory"
);
}
// error
//
// :3:5: error: global assembly cannot have inputs, outputs, or clobbers