mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-11 22:29:28 +00:00
21 lines
199 B
C
21 lines
199 B
C
|
|
void abort (void);
|
|
|
|
struct T
|
|
{
|
|
int b : 1;
|
|
} t;
|
|
|
|
void __attribute__((noinline)) foo (int f)
|
|
{
|
|
t.b = (f & 0x10) ? 1 : 0;
|
|
}
|
|
|
|
int main (void)
|
|
{
|
|
foo (0x10);
|
|
if (!t.b)
|
|
abort ();
|
|
return 0;
|
|
}
|