mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
20 lines
187 B
C
20 lines
187 B
C
static int
|
|
test(int x)
|
|
{
|
|
union
|
|
{
|
|
int i;
|
|
double d;
|
|
} a;
|
|
a.d = 0;
|
|
a.i = 1;
|
|
return x >> a.i;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
if (test (5) != 2)
|
|
abort ();
|
|
exit (0);
|
|
}
|