Sign in
ara-mdk
/
platform
/
external
/
valgrind
/
6393569cd934c633b9505e923a48481b9ad6d8df
/
.
/
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
;
}