zig/test/cases/compile_errors/embedFile_with_bogus_file.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

11 lines
216 B
Zig

const resource = @embedFile("bogus.txt");
export fn entry() usize {
return @sizeOf(@TypeOf(resource));
}
// error
// backend=stage2
// target=native
//
// :1:29: error: unable to open 'bogus.txt': FileNotFound