#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
export fn entry1() void {
    @trap();
    @trap();
}
export fn entry2() void {
    @panic("");
    @panic("");
}
export fn entry3() void {
    @compileError("expect to hit this");
    @compileError("");
}
#}
#update
#check errors {
test.zig:3:5: error: unreachable code
test.zig:2:5: note: control flow is diverted here
test.zig:7:5: error: unreachable code
test.zig:6:5: note: control flow is diverted here
test.zig:11:5: error: unreachable code
test.zig:10:5: note: control flow is diverted here
test.zig:10:5: error: expect to hit this
#}
