]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/promoted_overflow_opt.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / numbers-arithmetic / promoted_overflow_opt.rs
1 // run-pass
2
3 // compile-flags: -O
4
5 fn main() {
6     let x = &(0u32 - 1);
7     assert_eq!(*x, u32::MAX)
8 }