mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +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
|