blob: 21c67e151cff436e7a5fefa0521818bd0951cc1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
export fn a() void {
var x: *anyopaque = undefined;
var y: [*c]anyopaque = x;
_ = .{ &x, &y };
}
// error
// backend=stage2
// target=native
//
// :3:16: error: C pointers cannot point to opaque types
|