mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
29 lines
417 B
C
29 lines
417 B
C
/* This testcase failed because - 1 - buf was simplified into ~buf and when
|
|
later expanding it back into - buf + -1, -1 got lost. */
|
|
|
|
extern void abort (void);
|
|
extern void exit (int);
|
|
|
|
static void
|
|
bar (int x)
|
|
{
|
|
if (!x)
|
|
abort ();
|
|
}
|
|
|
|
char buf[10];
|
|
|
|
inline char *
|
|
foo (char *tmp)
|
|
{
|
|
//asm ("" : "=r" (tmp) : "0" (tmp));
|
|
return tmp + 2;
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
bar ((foo (buf) - 1 - buf) == 1);
|
|
exit (0);
|
|
}
|