Sign in
third-party-mirror
/
cbindgen
/
9a26cd0114a633fa05ece30bd3f1b13149f496f2
/
.
/
cbindgen-0.24.5
/
tests
/
rust
/
prefixed_struct_literal_deep.rs
blob: bfa2d8dc7c85ced58844efc0b8e7a19da6de0fc6 [
file
] [
log
] [
blame
]
#[
repr
(
C
)]
struct
Foo
{
a
:
i32
,
b
:
u32
,
bar
:
Bar
,
}
#[
repr
(
C
)]
struct
Bar
{
a
:
i32
,
}
pub
const
VAL
:
Foo
=
Foo
{
a
:
42
,
b
:
1337
,
bar
:
Bar
{
a
:
323
},
};
#[
no_mangle
]
pub
extern
"C"
fn
root
(
x
:
Foo
)
{}