mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
20 lines
179 B
C
20 lines
179 B
C
struct a
|
|
{
|
|
unsigned int bitfield : 3;
|
|
};
|
|
|
|
int main()
|
|
{
|
|
struct a a;
|
|
|
|
a.bitfield = 131;
|
|
foo (a.bitfield);
|
|
exit (0);
|
|
}
|
|
|
|
foo(unsigned int z)
|
|
{
|
|
if (z != 3)
|
|
abort ();
|
|
}
|