| Add the differential test runner, and a lowering to measure with it 8ac32af nandithebull 18h ago | 1 | // Exact widths must survive the trip. A transpiler that widened these would |
| 2 | // still print the right answer here, so the wrapping cases below are the |
| 3 | // ones that actually discriminate. |
| 4 | fn main() { |
| 5 | let a: i8 = -128; |
| 6 | let b: u8 = 255; |
| 7 | let c: i16 = -32768; |
| 8 | let d: u16 = 65535; |
| 9 | let e: i32 = -2147483648; |
| 10 | let f: u32 = 4294967295; |
| 11 | let g: i64 = -9223372036854775808; |
| 12 | let h: u64 = 18446744073709551615; |
| 13 | println!("{} {} {} {} {} {} {} {}", a, b, c, d, e, f, g, h); |
| 14 | } |