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

#write test.zig {
extern "" var a: u32;
extern "" fn b() void;

extern "\x00" var c: u32;
extern "\x00" fn d() void;

test "" {}
test "\x00" {}

const e = @import("");
const f = @import("\x00");

comptime {
    const @"" = undefined;
}
comptime {
    const @"\x00" = undefined;
}
#}
#update
#check errors {
test.zig:1:8: error: library name cannot be empty
test.zig:2:8: error: library name cannot be empty
test.zig:4:8: error: library name cannot contain null bytes
test.zig:5:8: error: library name cannot contain null bytes
test.zig:7:6: error: empty test name must be omitted
test.zig:8:6: error: test name cannot contain null bytes
test.zig:10:19: error: import path cannot be empty
test.zig:11:19: error: import path cannot contain null bytes
test.zig:14:11: error: identifier cannot be empty
test.zig:17:11: error: identifier cannot contain null bytes
#}
