[Stage2/Testing] Add (failing) test
parent
2d1d012f11
commit
bebc1f49cf
|
@ -23,6 +23,20 @@ pub fn addCases(ctx: *TestContext) !void {
|
||||||
.msg = "unrecognized identifier: %test",
|
.msg = "unrecognized identifier: %test",
|
||||||
}}, &[_]ErrorMsg{}, &[_]ErrorMsg{});
|
}}, &[_]ErrorMsg{}, &[_]ErrorMsg{});
|
||||||
|
|
||||||
|
ctx.addZIRError("call with non-existent target", linux_x64,
|
||||||
|
\\@noreturn = primitive(noreturn)
|
||||||
|
\\
|
||||||
|
\\@start_fnty = fntype([], @noreturn, cc=Naked)
|
||||||
|
\\@start = fn(@start_fnty, {
|
||||||
|
\\ %0 = call(@notafunc, [])
|
||||||
|
\\})
|
||||||
|
, &[_]ErrorMsg{
|
||||||
|
.{
|
||||||
|
.byte_offset = 118,
|
||||||
|
.msg = "unrecognized identifier: @notafunc",
|
||||||
|
},
|
||||||
|
}, &[_]ErrorMsg{}, &[_]ErrorMsg{});
|
||||||
|
|
||||||
//try ctx.testCompileError(
|
//try ctx.testCompileError(
|
||||||
// \\export fn entry() void {}
|
// \\export fn entry() void {}
|
||||||
// \\export fn entry() void {}
|
// \\export fn entry() void {}
|
||||||
|
|
Loading…
Reference in New Issue