about summary refs log tree commit diff
path: root/tests/ui/unpretty/unsafe-attr.rs
blob: 8734ea86b6d6d91a1933b726228fc26124c351b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ 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() {}