Sign in
◑
Theme
gdch-oss
/
third_party
/
ba02367253bcffb6f4dcfe4bc27005e9cae78edd
/
.
/
tests
/
rust
/
prefixed_struct_literal_deep.rs
blob: dfadfdb3dec1e68a430ca17035aad89da587dffa [
file
]
#[
repr
(
C
)]
struct
Foo
{
a
:
i32
,
b
:
u32
,
bar
:
Bar
,
}
#[
repr
(
C
)]
struct
Bar
{
a
:
i32
,
}
const
VAL
:
Foo
=
Foo
{
a
:
42
,
b
:
1337
,
bar
:
Bar
{
a
:
323
},
};
#[
no_mangle
]
pub
extern
"C"
fn
root
(
x
:
Foo
)
{}