Files
zig/test/cases/compile_errors/c_pointer_to_void.zig

12 lines
270 B
Zig

export fn entry() void {
const a: [*c]void = undefined;
_ = a;
}
// error
// backend=stage2
// target=native
//
// :2:18: error: C pointers cannot point to non-C-ABI-compatible type 'void'
// :2:18: note: 'void' is a zero bit type; for C 'void' use 'anyopaque'