mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-07 17:11:19 -04:00
12 lines
270 B
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'
|