| author | |
| committer | |
| log | 8cde0c91c6e95853a092ff8e00f92d804102a5dc |
| tree | 4b7c9528e488b10fed88e041c30e2bac007e9b97 |
| parent | b009aca38a861f74fd5378db19c65db286ad397e |
Amends b009aca38a861f74fd5378db19c65db286ad397e.
The PR predated the introduction of unused variable/constant checks,
thus the build checks weren't reporting this failure until later when
merged into master.1 files changed, 3 insertions(+), 0 deletions(-)
test/behavior/bugs/3779.zig+3| ... | ... | @@ -53,5 +53,8 @@ test "@src() returns a struct containing 0-terminated string slices" { |
| 53 | 53 | try std.testing.expect(std.mem.endsWith(u8, src.fn_name, "testFnForSrc")); |
| 54 | 54 | |
| 55 | 55 | const ptr_src_file: [*:0]const u8 = src.file; |
| 56 | _ = ptr_src_file; // unused | |
| 57 | ||
| 56 | 58 | const ptr_src_fn_name: [*:0]const u8 = src.fn_name; |
| 59 | _ = ptr_src_fn_name; // unused | |
| 57 | 60 | } |