summaryrefslogtreecommitdiffstats
path: root/tests/ui/cross-crate/static-init.rs
blob: 2e893c5d9bff9e01c9f7441c6e938c79403a6803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
// aux-build:static_init_aux.rs
extern crate static_init_aux as aux;

static V: &u32 = aux::V;
static F: fn() = aux::F;

fn v() -> *const u32 {
    V
}

fn main() {
    assert_eq!(aux::v(), crate::v());
    F();
}