aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/test_no_op_casts.zig
blob: c7a731346f113ecee3ad1e4ab663bd83917f8f20 (plain)
1
2
3
4
5
6
7
8
9
test "type coercion - const qualification" {
    var a: i32 = 1;
    const b: *i32 = &a;
    foo(b);
}

fn foo(_: *const i32) void {}

// test