mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
32 lines
496 B
C
32 lines
496 B
C
static int which_alternative = 3;
|
|
|
|
static const char *i960_output_ldconst (void);
|
|
|
|
static const char *
|
|
output_25 (void)
|
|
{
|
|
switch (which_alternative)
|
|
{
|
|
case 0:
|
|
return "mov %1,%0";
|
|
case 1:
|
|
return i960_output_ldconst ();
|
|
case 2:
|
|
return "ld %1,%0";
|
|
case 3:
|
|
return "st %1,%0";
|
|
}
|
|
}
|
|
|
|
static const char *i960_output_ldconst (void)
|
|
{
|
|
return "foo";
|
|
}
|
|
int main(void)
|
|
{
|
|
const char *s = output_25 () ;
|
|
if (s[0] != 's')
|
|
abort ();
|
|
exit (0);
|
|
}
|