mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
14 lines
253 B
Rust
14 lines
253 B
Rust
//@ run-pass
|
|
//@ aux-build:cci_const.rs
|
|
|
|
#![allow(non_upper_case_globals)]
|
|
#![allow(unpredictable_function_pointer_comparisons)]
|
|
|
|
extern crate cci_const;
|
|
use cci_const::bar;
|
|
static foo: extern "C" fn() = bar;
|
|
|
|
pub fn main() {
|
|
assert!(foo == bar);
|
|
}
|