]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libmudflap/testsuite/libmudflap.c/pass23-frag.c
10 int lots_more_nothing
: 3;
11 int some_padding
; /* for 64-bit hosts */
12 float some_more_nothing
;
13 double yet_more_nothing
;
16 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
18 struct foo
* q
= (struct foo
*) malloc (offsetof (struct foo
, some_more_nothing
));
19 q
->nothing
= 1; /* touch q */
20 /* The RHS of the following expression is meant to trigger a
21 fold-const.c mapping the expression to a BIT_FIELD_REF. It glues
22 together the accesses to the two non-neighbouring bitfields into a
23 single bigger boolean test. */
24 q
->lots_more_nothing
= (q
->part1
== 13 && q
->part2
== 7);