╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ compile_errors.zig ───────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
225 226 case.addError("_ = \"\x01Q\";", &[_][]const u8{ 227 ":1:6: error: string literal contains invalid byte: '\\x01'", 228 }); 229 } 230 231 { 232 const case = ctx.obj("invalid byte in comment", b.graph.host); 233 234 case.addError("//\x01Q", &[_][]const u8{ 235 ":1:3: error: comment contains invalid byte: '\\x01'", 236 }); 237 } 238 239 { 240 const case = ctx.obj("control character in character literal", b.graph.host); 241 242 case.addError("const c = '\x01';", &[_][]const u8{ 243 ":1:12: error: character literal contains invalid byte: '\\x01'", 244 }); 245 } 246 247 { 248 const case = ctx.obj("invalid byte at start of token", b.graph.host); 249 250 case.addError("x = \x00Q", &[_][]const u8{ 251 ":1:5: error: expected expression, found 'invalid token'", 252 }); 253 } 254 } 255