]> git.proxmox.com Git - rustc.git/blame - src/test/ui/numbers-arithmetic/overflowing-add.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / numbers-arithmetic / overflowing-add.rs
CommitLineData
f9f354fc 1// run-fail
5bcae85e 2// error-pattern:thread 'main' panicked at 'attempt to add with overflow'
c34b1796 3// compile-flags: -C debug-assertions
f9f354fc 4// ignore-emscripten no processes
85aaf69f 5
74b04a01 6#![allow(arithmetic_overflow)]
94b46f34 7
c34b1796 8fn main() {
b039eaaf 9 let _x = 200u8 + 200u8 + 200u8;
c34b1796 10}