mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 22:33:08 +00:00
10 lines
143 B
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
|