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

#write test.zig {
const array = [_]u8{};
export fn foo() void {
    const pointer = &array[0];
    _ = pointer;
}
#}
#update
#check errors {
test.zig:3:27: error: cannot index into empty array
#}
