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

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