| ... | @@ -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" |