Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
valgrind
/
c7c6aedbe893707e122c466e52c239b8e3534d7d
/
.
/
tests
/
bitfield1.c
blob: 4a7a61a97c2e2f7a687b37ef18ea0f5ae9f995ad [
file
] [
log
] [
blame
]
#include
<malloc.h>
typedef
struct
{
int
x
;
unsigned
int
y
:
1
;
int
z
;
}
Fooble
;
void
main
(
void
)
{
Fooble
*
f
=
malloc
(
sizeof
(
Fooble
));
f
->
x
=
1
;
f
->
z
=
1
;
f
->
y
=
(
f
==
(
Fooble
*)
17
?
1
:
0
);
}