Skip to content

Commit dd3f01e

Browse files
committed
incremental: add test for ZON file without result type
1 parent d8ac37f commit dd3f01e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#target=x86_64-linux-selfhosted
2+
#target=x86_64-linux-cbe
3+
#target=x86_64-windows-cbe
4+
//#target=wasm32-wasi-selfhosted
5+
#update=initial version
6+
#file=main.zig
7+
const std = @import("std");
8+
pub fn main() !void {
9+
try std.io.getStdOut().writeAll(@import("foo.zon").message);
10+
}
11+
#file=foo.zon
12+
.{
13+
.message = "Hello, World!\n",
14+
.a_number = 0,
15+
}
16+
#expect_stdout="Hello, World!\n"
17+
18+
#update=change ZON file
19+
#file=foo.zon
20+
.{
21+
.message = "Hello again, World!\n",
22+
.b_number = 0,
23+
}
24+
#expect_stdout="Hello again, World!\n"

0 commit comments

Comments
 (0)