mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-11 22:29:28 +00:00
21 lines
212 B
C
21 lines
212 B
C
struct s {
|
|
unsigned long a:4, b:16;
|
|
};
|
|
|
|
struct s
|
|
f(struct s x)
|
|
{
|
|
x.b = 0xcdef;
|
|
return x;
|
|
}
|
|
|
|
main()
|
|
{
|
|
static struct s i;
|
|
i.a = 12;
|
|
i = f(i);
|
|
if (i.a != 12 || i.b != 0xcdef)
|
|
abort();
|
|
exit(0);
|
|
}
|