zig/test/incremental/x86_64-linux/inline_assembly.2.zig
Jakub Konka 8d5acf7693 test: recursively walk dir with tests
Prune incremental tests by moving non-incremental behavior tests to
behavior test suite instead.
2022-04-28 18:35:01 +02:00

13 lines
211 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