Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
union
/
union-repr-c.rs
blob: 658452d57f748b394fe6771885bbdde6dde47fba [
file
] [
log
] [
blame
]
#![
allow
(
unused
)]
#![
deny
(
improper_ctypes
)]
#[
repr
(
C
)]
union U
{
a
:
u8
,
}
union W
{
a
:
u8
,
}
extern
"C"
{
static
FOREIGN1
:
U
;
// OK
static
FOREIGN2
:
W
;
//~ ERROR union has unspecified layout
}
fn
main
()
{}