zig/test/cases/compile_errors/private_main_fn.zig

11 lines
193 B
Zig

fn main() void {}
// error
// backend=llvm
// target=x86_64-linux
// output_mode=Exe
//
// :?:?: error: 'main' is not marked 'pub'
// :1:1: note: declared here
// :?:?: note: called from here