mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 10:05:10 +01:00
Currently, in a debug build of the compiler, `@embedFile("")` is a crash;
in a release build the compiler, `@embedFile("")` is "error: unable to open '': OutOfMemory".
11 lines
197 B
Zig
11 lines
197 B
Zig
const resource = @embedFile("");
|
|
|
|
export fn entry() usize {
|
|
return @sizeOf(@TypeOf(resource));
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :1:29: error: file path name cannot be empty
|