Linux SPARSE checker discussions
 help / color / mirror / Atom feed
* Issue with bitfield
@ 2017-08-19  1:24 Dibyendu Majumdar
  2017-08-19 20:18 ` Luc Van Oostenryck
  0 siblings, 1 reply; 2+ messages in thread
From: Dibyendu Majumdar @ 2017-08-19  1:24 UTC (permalink / raw)
  To: Linux-Sparse

Hi,

This test program appears to generate incorrect IR.

extern int printf(const char *s, ...);

int main(void) {
struct { char a:4; char b:4; } x = { 2, 4 };
printf("a=%d b=%d\n", (int)x.a, (int)x.b);
return 0;
}

Regards
Dibyendu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-19 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-19  1:24 Issue with bitfield Dibyendu Majumdar
2017-08-19 20:18 ` Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox