╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ behavior.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
141 } 142 143 // This bug only repros in the root file 144 test "dereference @embedFile() of a file full of zero bytes" { 145 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; 146 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest; 147 148 const contents = @embedFile("behavior/zero.bin").*; 149 try @import("std").testing.expect(contents.len == 456); 150 for (contents) |byte| try @import("std").testing.expect(byte == 0); 151 } 152