Sign in
ara-mdk
/
platform
/
external
/
valgrind
/
ddadfd116433f2c4300dd22600c9bf572b2eb1c1
/
.
/
main
/
none
/
tests
/
bitfield1.c
blob: 1dcf4c9493a6c9d0825773333c50e2b8fc22cb91 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
typedef
struct
{
int
x
;
unsigned
int
y
:
1
;
int
z
;
}
Fooble
;
int
main
(
void
)
{
Fooble
*
f
=
malloc
(
sizeof
(
Fooble
));
f
->
x
=
1
;
f
->
z
=
1
;
f
->
y
=
(
f
==
(
Fooble
*)
17
?
1
:
0
);
return
0
;
}