Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr40657.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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); }