aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/unsafe3.rs
blob: 5f427258f60c9828cd68596746292b8190b63510 (plain)
1
2
3
4
5
6
7
8
9
pub fn test() -> i32 {
    let a = unsafe { 123 };
    a
}

pub fn main() {
    let a = test();
    // { dg-warning "unused name" "" { target *-*-* } .-1 }
}