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