Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
valgrind
/
5a2664c7e26ac5053ebde6954a6e789144df570e
/
.
/
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
;
}