test_comptime_shlExact_overflow.zig (135B) - Raw
1 comptime { 2 const x = @shlExact(@as(u8, 0b01010101), 2); 3 _ = x; 4 } 5 6 // test_error=overflow of integer type 'u8' with value '340'
zigfork of https://codeberg.org/ziglang/zig | |
| Log | Files | Refs | README | LICENSE |