12 lines
196 B
Rust
12 lines
196 B
Rust
|
//@ compile-flags: -Zunpretty=normal
|
||
|
//@ check-pass
|
||
|
|
||
|
#[no_mangle]
|
||
|
extern "C" fn foo() {}
|
||
|
|
||
|
#[unsafe(no_mangle)]
|
||
|
extern "C" fn bar() {}
|
||
|
|
||
|
#[cfg_attr(FALSE, unsafe(no_mangle))]
|
||
|
extern "C" fn zoo() {}
|