mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 23:31:07 +00:00
12 lines
139 B
Rust
12 lines
139 B
Rust
//@ compile-flags:-O
|
|
|
|
#[inline]
|
|
fn foo() {}
|
|
|
|
pub static ADDR: fn() = foo;
|
|
|
|
#[inline(always)]
|
|
pub fn bar(x: fn()) -> bool {
|
|
x == ADDR
|
|
}
|