zig/test/cases/x86_64-linux/inline_assembly.1.zig

16 lines
232 B
Zig

const S = struct {
comptime {
asm volatile (
\\zig_moment:
\\syscall
);
}
};
pub fn main() void {
_ = S;
}
// error
//
// :3:13: error: volatile is meaningless on global assembly