mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
25 lines
211 B
C
25 lines
211 B
C
extern void abort (void);
|
|
|
|
struct type
|
|
{
|
|
int *a;
|
|
|
|
int b:16;
|
|
unsigned int p:9;
|
|
} t;
|
|
|
|
unsigned int
|
|
foo ()
|
|
{
|
|
return t.p;
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
t.p = 8;
|
|
if (foo (t) != 8)
|
|
abort ();
|
|
return 0;
|
|
}
|