| 1 | extern "" var a: u32; |
| 2 | extern "" fn b() void; |
| 3 | |
| 4 | extern "\x00" var c: u32; |
| 5 | extern "\x00" fn d() void; |
| 6 | |
| 7 | test "" {} |
| 8 | test "\x00" {} |
| 9 | |
| 10 | const e = @import(""); |
| 11 | const f = @import("\x00"); |
| 12 | |
| 13 | comptime { |
| 14 | const @"" = undefined; |
| 15 | } |
| 16 | comptime { |
| 17 | const @"\x00" = undefined; |
| 18 | } |
| 19 | |
| 20 | // error |
| 21 | // |
| 22 | // :1:8: error: library name cannot be empty |
| 23 | // :2:8: error: library name cannot be empty |
| 24 | // :4:8: error: library name cannot contain null bytes |
| 25 | // :5:8: error: library name cannot contain null bytes |
| 26 | // :7:6: error: empty test name must be omitted |
| 27 | // :8:6: error: test name cannot contain null bytes |
| 28 | // :10:19: error: import path cannot be empty |
| 29 | // :11:19: error: import path cannot contain null bytes |
| 30 | // :14:11: error: identifier cannot be empty |
| 31 | // :17:11: error: identifier cannot contain null bytes |