blob: e6d8dda9f99e8cb8fadaa15cc8a1f769aa03127c [file] [log] [blame]
/* Verify that that Thumb-1 epilogue size optimization does not clobber the
return value. */
long long v = 0x123456789abc;
__attribute__((noinline)) void bar (int *x)
{
asm volatile ("" : "=m" (x) ::);
}
__attribute__((noinline)) long long foo()
{
int x;
bar(&x);
return v;
}
int main ()
{
if (foo () != v)
abort ();
exit (0);
}