mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
13 lines
212 B
Zig
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
|