| 1 | const std = @import("std"); |
| 2 | |
| 3 | pub fn main() void { |
| 4 | var value: i32 = -1; // runtime-known |
| 5 | _ = &value; |
| 6 | const unsigned: u32 = @intCast(value); |
| 7 | std.debug.print("value: {}\n", .{unsigned}); |
| 8 | } |
| 9 | |
| 10 | // exe=fail |