about summary refs log tree commit diff
path: root/tests/ui/rust-2024/unsafe-extern-blocks/safe-items.rs
blob: 2b2d58c3eb3d6372b49bbd4fe1aeb3d7377a9463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ revisions: edition2021 edition2024
//@[edition2021] edition:2021
//@[edition2024] edition:2024
//@ check-pass

unsafe extern "C" {
    safe static TEST1: i32;
    safe fn test1(i: i32);
}

fn test2() {
    test1(TEST1);
}

fn main() {}