2024-02-16 20:02:50 +00:00
|
|
|
//@ run-fail
|
|
|
|
|
//@ error-pattern:thread 'main' panicked
|
|
|
|
|
//@ error-pattern:attempt to add with overflow
|
|
|
|
|
//@ compile-flags: -C debug-assertions
|
2025-01-23 16:36:54 +08:00
|
|
|
//@ needs-subprocess
|
2015-02-19 12:37:27 +01:00
|
|
|
|
2020-02-18 22:49:47 +01:00
|
|
|
#![allow(arithmetic_overflow)]
|
2018-05-11 14:33:37 +02:00
|
|
|
|
2015-01-06 00:56:30 -05:00
|
|
|
fn main() {
|
2015-10-02 10:36:45 +02:00
|
|
|
let _x = 200u8 + 200u8 + 200u8;
|
2015-01-06 00:56:30 -05:00
|
|
|
}
|