mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
incremental: add test for ZON file without result type
This commit is contained in:
parent
d8ac37fcc8
commit
dd3f01eadf
1 changed files with 24 additions and 0 deletions
24
test/incremental/change_zon_file_no_result_type
Normal file
24
test/incremental/change_zon_file_no_result_type
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
#target=x86_64-linux-selfhosted
|
||||||
|
#target=x86_64-linux-cbe
|
||||||
|
#target=x86_64-windows-cbe
|
||||||
|
//#target=wasm32-wasi-selfhosted
|
||||||
|
#update=initial version
|
||||||
|
#file=main.zig
|
||||||
|
const std = @import("std");
|
||||||
|
pub fn main() !void {
|
||||||
|
try std.io.getStdOut().writeAll(@import("foo.zon").message);
|
||||||
|
}
|
||||||
|
#file=foo.zon
|
||||||
|
.{
|
||||||
|
.message = "Hello, World!\n",
|
||||||
|
.a_number = 0,
|
||||||
|
}
|
||||||
|
#expect_stdout="Hello, World!\n"
|
||||||
|
|
||||||
|
#update=change ZON file
|
||||||
|
#file=foo.zon
|
||||||
|
.{
|
||||||
|
.message = "Hello again, World!\n",
|
||||||
|
.b_number = 0,
|
||||||
|
}
|
||||||
|
#expect_stdout="Hello again, World!\n"
|
||||||
Loading…
Add table
Reference in a new issue