aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/empty_file_level_struct.zig
AgeCommit message (Collapse)Author
2022-12-23fix overflow found while fuzzingtravisstaloch
* allow file level `union {}` to parse as tuple field this was found while fuzzing zls. * before this patch the input `union {}` crashed the parser. after this, it parses correctly just like `struct {}`. * adds behavior tests for both inputs `struct {}` and `union {}`, checking that each becomes a file level tuple field.