| 1 | #update=initial version |
| 2 | #file=main.zig |
| 3 | const foo = {}; |
| 4 | pub fn main() void { |
| 5 | _ = &foo; |
| 6 | } |
| 7 | #expect_stdout="" |
| 8 | |
| 9 | #update=introduce use of undeclared identifier |
| 10 | #file=main.zig |
| 11 | const foo = something; |
| 12 | pub fn main() void { |
| 13 | _ = &foo; |
| 14 | } |
| 15 | #expect_error=main.zig:1:13: error: use of undeclared identifier 'something' |
| 16 | |
| 17 | #update=revert use of undeclared identifier |
| 18 | #file=main.zig |
| 19 | const foo = {}; |
| 20 | pub fn main() void { |
| 21 | _ = &foo; |
| 22 | } |
| 23 | #expect_stdout="" |