mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
16 lines
232 B
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
|