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

fn main() {
    let a;
    a = test();
}