mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
9 lines
143 B
Zig
9 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
|