Skip to content

Commit 8d4841c

Browse files
committed
Add final test
1 parent 3b206b7 commit 8d4841c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// ignore-test
2-
// compile-flags: --force-warns arithmetic_overflow
1+
// compile-flags: --force-warns const_err
32
// check-pass
43

5-
#![allow(arithmetic_overflow)]
4+
#![allow(const_err)]
5+
const C: i32 = 1 / 0;
6+
//~^ WARN any use of this value will cause an error
7+
//~| WARN this was previously accepted by the compiler
68

7-
fn main() {
8-
1_i32 << 32;
9-
//~^ WARN this arithmetic operation will overflow
10-
}
9+
fn main() {}

0 commit comments

Comments
 (0)