diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-09-12 19:37:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-09-13 02:04:20 -0700 |
| commit | f8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019 (patch) | |
| tree | efe1f2ac3ba62ea641687bb82c927826ef72cee1 /test/cases/compile_errors/reference_to_const_data.zig | |
| parent | 188902a710a64b08762d7731aab81cb695322184 (diff) | |
| download | zig-f8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019.tar.gz zig-f8a9bc57ce1a2a5a1b90e9a33501b64f2dd79019.zip | |
translate-c: lower discards differently
This makes translate-c lower discards as `_ = @TypeOf(foo);` to avoid
tripping the "pointless discard" error.
Ideally, translate-c would avoid emitting pointless discards, in which
case this commit can be reverted, however, that is a separate
enhancement.
Diffstat (limited to 'test/cases/compile_errors/reference_to_const_data.zig')
0 files changed, 0 insertions, 0 deletions
