aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/c_pointer_to_void.zig
blob: 116f5a89486f9f1a93ff73ac961270d83d45b4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
export fn entry() void {
    var a: [*c]void = undefined;
    _ = a;
}

// error
// backend=stage2
// target=native
//
// :2:16: error: C pointers cannot point to non-C-ABI-compatible type 'void'
// :2:16: note: 'void' is a zero bit type; for C 'void' use 'anyopaque'