1#exe {
2-Mroot=main.zig
3#}
4
5#write main.zig @0/main.zig
6#update
7#check stdout {
8123
9#}
10
11#write main.zig @1/main.zig
12#update "add conflict"
13#check errors {
14main.zig:6:5: error: exported symbol collision: foo
15main.zig:1:1: note: other symbol here
16#}
17
18#write main.zig @2/main.zig
19#update "resolve conflict"
20#check stdout {
21123 456
22#}
23
24#write main.zig @3/main.zig
25#update "put exports in decl"
26#check stdout {
27123 456
28#}
29
30#write main.zig @4/main.zig
31#update "remove reference to exporting decl"
32#check stdout
33
34#write main.zig @5/main.zig
35#update "mark consts as export"
36#check stdout {
37123 456
38#}
39
40#write main.zig @6/main.zig
41#update "reintroduce reference to exporting decl, introducing conflict"
42#check errors {
43main.zig:5:5: error: exported symbol collision: bar
44main.zig:2:1: note: other symbol here
45main.zig:6:5: error: exported symbol collision: other
46main.zig:3:1: note: other symbol here
47#}