zig/doc/langref/test_no_op_casts.zig

10 lines
143 B
Zig

test "type coercion - const qualification" {
var a: i32 = 1;
const b: *i32 = &a;
foo(b);
}
fn foo(_: *const i32) void {}
// test