mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
14 lines
172 B
C
14 lines
172 B
C
struct a { unsigned int bitfield : 1; };
|
|
|
|
unsigned int x;
|
|
|
|
main()
|
|
{
|
|
struct a a = {0};
|
|
x = 0xbeef;
|
|
a.bitfield |= x;
|
|
if (a.bitfield != 1)
|
|
abort ();
|
|
exit (0);
|
|
}
|