| ... | @@ -23,6 +23,20 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -23,6 +23,20 @@ pub fn addCases(ctx: *TestContext) !void { |
| 23 | .msg = "unrecognized identifier: %test", | 23 | .msg = "unrecognized identifier: %test", |
| 24 | }}, &[_]ErrorMsg{}, &[_]ErrorMsg{}); | 24 | }}, &[_]ErrorMsg{}, &[_]ErrorMsg{}); |
| 25 | | 25 | |
| | 26 | ctx.addZIRError("call with non-existent target", linux_x64, |
| | 27 | \\@noreturn = primitive(noreturn) |
| | 28 | \\ |
| | 29 | \\@start_fnty = fntype([], @noreturn, cc=Naked) |
| | 30 | \\@start = fn(@start_fnty, { |
| | 31 | \\ %0 = call(@notafunc, []) |
| | 32 | \\}) |
| | 33 | , &[_]ErrorMsg{ |
| | 34 | .{ |
| | 35 | .byte_offset = 118, |
| | 36 | .msg = "unrecognized identifier: @notafunc", |
| | 37 | }, |
| | 38 | }, &[_]ErrorMsg{}, &[_]ErrorMsg{}); |
| | 39 | |
| 26 | //try ctx.testCompileError( | 40 | //try ctx.testCompileError( |
| 27 | // \\export fn entry() void {} | 41 | // \\export fn entry() void {} |
| 28 | // \\export fn entry() void {} | 42 | // \\export fn entry() void {} |