mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 05:51:58 +00:00
12 lines
196 B
Plaintext
12 lines
196 B
Plaintext
//@ 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() {}
|