aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-4139.rs
blob: dc62d1cd088ab517d1338195699d12a8c85443bc (plain)
1
2
3
4
5
6
7
// { dg-skip-if "" { *-*-* } { "-m32" } { "" } }
const X: i32 = const {
    let a = 0x736f6d6570736575;
    // { dg-error "integer overflows the respective type" "" { target *-*-* } .-1 }
    let b = 14;
    a + b
};