test_no_op_casts.zig (143B) - Raw
1 test "type coercion - const qualification" { 2 var a: i32 = 1; 3 const b: *i32 = &a; 4 foo(b); 5 } 6 7 fn foo(_: *const i32) void {} 8 9 // test
zigfork of https://codeberg.org/ziglang/zig | |
| Log | Files | Refs | README | LICENSE |