PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / bf-pack-1.c
blobca3b1db763b50604774d5a8176362d9968e0ea4a
1 struct foo
3 unsigned half:16;
4 unsigned long whole:32 __attribute__ ((packed));
5 };
7 f (struct foo *q)
9 if (q->half != 0x1234)
10 abort ();
11 if (q->whole != 0x56789abcL)
12 abort ();
15 main ()
17 struct foo bar;
19 bar.half = 0x1234;
20 bar.whole = 0x56789abcL;
21 f (&bar);
22 exit (0);