aboutsummaryrefslogtreecommitdiff
path: root/test/incremental/function_becomes_inline
diff options
context:
space:
mode:
authorAndrew Kelley <andrewrk@noreply.codeberg.org>2025-12-27 14:10:46 +0100
committerAndrew Kelley <andrewrk@noreply.codeberg.org>2025-12-27 14:10:46 +0100
commite55e6b5528bb2f01de242fcf32b172e244e98e74 (patch)
tree3a5eb3193d3d192c54ab0c2b7295a7f21861c27e /test/incremental/function_becomes_inline
parentc3f2de5e519926eb0029062fe8e782a6f9df9c05 (diff)
parent60a1ba0a8f3517356fa2941462f002a7f580545b (diff)
downloadzig-e55e6b5528bb2f01de242fcf32b172e244e98e74.tar.gz
zig-e55e6b5528bb2f01de242fcf32b172e244e98e74.zip
Merge pull request 'std: migrate all `fs` APIs to `Io`' (#30232) from std.Io-fs into master
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30232
Diffstat (limited to 'test/incremental/function_becomes_inline')
-rw-r--r--test/incremental/function_becomes_inline9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/incremental/function_becomes_inline b/test/incremental/function_becomes_inline
index 240d7a54af..4021575842 100644
--- a/test/incremental/function_becomes_inline
+++ b/test/incremental/function_becomes_inline
@@ -8,9 +8,10 @@ pub fn main() !void {
try foo();
}
fn foo() !void {
- try std.fs.File.stdout().writeAll("Hello, World!\n");
+ try std.Io.File.stdout().writeStreamingAll(io, "Hello, World!\n");
}
const std = @import("std");
+const io = std.Io.Threaded.global_single_threaded.ioBasic();
#expect_stdout="Hello, World!\n"
#update=make function inline
@@ -19,9 +20,10 @@ pub fn main() !void {
try foo();
}
inline fn foo() !void {
- try std.fs.File.stdout().writeAll("Hello, World!\n");
+ try std.Io.File.stdout().writeStreamingAll(io, "Hello, World!\n");
}
const std = @import("std");
+const io = std.Io.Threaded.global_single_threaded.ioBasic();
#expect_stdout="Hello, World!\n"
#update=change string
@@ -30,7 +32,8 @@ pub fn main() !void {
try foo();
}
inline fn foo() !void {
- try std.fs.File.stdout().writeAll("Hello, `inline` World!\n");
+ try std.Io.File.stdout().writeStreamingAll(io, "Hello, `inline` World!\n");
}
const std = @import("std");
+const io = std.Io.Threaded.global_single_threaded.ioBasic();
#expect_stdout="Hello, `inline` World!\n"