mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
stage2: zig fmt
This commit is contained in:
parent
e791f062ba
commit
c07213269f
@ -170,7 +170,7 @@ fn exit2(code: usize) noreturn {
|
||||
asm volatile ("ta 0x6d"
|
||||
:
|
||||
: [number] "{g1}" (1),
|
||||
[arg1] "{o0}" (code)
|
||||
[arg1] "{o0}" (code),
|
||||
: "o0", "o1", "o2", "o3", "o4", "o5", "o6", "o7", "memory"
|
||||
);
|
||||
},
|
||||
|
||||
@ -144,4 +144,3 @@ pub fn extraData(mir: Mir, comptime T: type, index: usize) struct { data: T, end
|
||||
.end = i,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -719,7 +719,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
);
|
||||
switch (target.getOsTag()) {
|
||||
.linux => try case.files.append(.{
|
||||
.src =
|
||||
.src =
|
||||
\\pub fn print() void {
|
||||
\\ asm volatile ("syscall"
|
||||
\\ :
|
||||
@ -735,7 +735,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
.path = "print.zig",
|
||||
}),
|
||||
.macos => try case.files.append(.{
|
||||
.src =
|
||||
.src =
|
||||
\\extern "c" fn write(usize, usize, usize) usize;
|
||||
\\
|
||||
\\pub fn print() void {
|
||||
@ -796,7 +796,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
);
|
||||
switch (target.getOsTag()) {
|
||||
.linux => try case.files.append(.{
|
||||
.src =
|
||||
.src =
|
||||
\\// dummy comment to make print be on line 2
|
||||
\\fn print() void {
|
||||
\\ asm volatile ("syscall"
|
||||
@ -813,7 +813,7 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||
.path = "print.zig",
|
||||
}),
|
||||
.macos => try case.files.append(.{
|
||||
.src =
|
||||
.src =
|
||||
\\extern "c" fn write(usize, usize, usize) usize;
|
||||
\\fn print() void {
|
||||
\\ _ = write(1, @ptrToInt("Hello, World!\n"), 14);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user