mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-07 10:20:02 +00:00
16 lines
226 B
Rust
16 lines
226 B
Rust
// 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();
|
|
}
|