repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
none/tests/fdleak_cmsg_supp.supp: Add suppressions for older glibc
[valgrind.git]
/
none
/
tests
/
bitfield1.c
blob
1dcf4c9493a6c9d0825773333c50e2b8fc22cb91
1
2
#include <stdlib.h>
3
4
typedef
5
struct
{
6
int
x
;
7
unsigned int
y
:
1
;
8
int
z
;
9
}
10
Fooble
;
11
12
int
main
(
void
)
13
{
14
Fooble
*
f
=
malloc
(
sizeof
(
Fooble
));
15
f
->
x
=
1
;
16
f
->
z
=
1
;
17
f
->
y
= (
f
== (
Fooble
*)
17
?
1
:
0
);
18
return
0
;
19
}