zig/test/cases/x86_64-linux/inline_assembly.2.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
212 B
Zig

pub fn main() void {
var bruh: u32 = 1;
asm (""
:
: [bruh] "{rax}" (4),
: "memory"
);
}
// error
//
// :3:5: error: assembly expression with no output must be marked volatile