master
 1#target=x86_64-linux-selfhosted
 2#target=x86_64-windows-selfhosted
 3#target=x86_64-linux-cbe
 4#target=x86_64-windows-cbe
 5#update=initial version
 6#file=main.zig
 7pub fn main() !void {
 8    try foo(123);
 9}
10fn foo(x: u8) !void {
11    var stdout_writer = std.fs.File.stdout().writerStreaming(&.{});
12    return stdout_writer.interface.print("{d}\n", .{x});
13}
14const std = @import("std");
15#expect_stdout="123\n"
16
17#update=change function type
18#file=main.zig
19pub fn main() !void {
20    try foo(123);
21}
22fn foo(x: i64) !void {
23    var stdout_writer = std.fs.File.stdout().writerStreaming(&.{});
24    return stdout_writer.interface.print("{d}\n", .{x});
25}
26const std = @import("std");
27#expect_stdout="123\n"
28
29#update=change function argument
30#file=main.zig
31pub fn main() !void {
32    try foo(-42);
33}
34fn foo(x: i64) !void {
35    var stdout_writer = std.fs.File.stdout().writerStreaming(&.{});
36    return stdout_writer.interface.print("{d}\n", .{x});
37}
38const std = @import("std");
39#expect_stdout="-42\n"