Sign in
third-party-mirror
/
cbindgen
/
9a26cd0114a633fa05ece30bd3f1b13149f496f2
/
.
/
cbindgen-0.24.5
/
tests
/
rust
/
function_noreturn.rs
blob: d7777adb4671796f34dd4f7c9726a5d02de12462 [
file
] [
log
] [
blame
]
#[
no_mangle
]
pub
extern
"C"
fn
loop_forever
()
->
!
{
loop
{}
}
#[
no_mangle
]
pub
extern
"C"
fn
normal_return
(
arg
:
Example
,
other
:
extern
"C"
fn
(
u8
)
->
!)
->
u8
{
0
}
#[
repr
(
C
)]
pub
struct
Example
{
pub
f
:
extern
"C"
fn
(
usize
,
usize
)
->
!,
}