aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/c_pointer_to_void.zig
blob: 502feb4326b2a06e585ba1b7dff0bd725c061528 (plain)
1
2
3
4
5
6
7
8
9
10
11
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'