Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr79354.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* PR target/79354 */ int b, f, g; float e; unsigned long d; __attribute__((noinline, noclone)) void foo (int *a) { for (g = 0; g < 32; g++) if (f) { e = d; __builtin_memcpy (&b, &e, sizeof (float)); b = *a; } } int main () { int h = 5; f = 1; asm volatile ("" : : : "memory"); foo (&h); asm volatile ("" : : : "memory"); foo (&b); asm volatile ("" : : : "memory"); return 0; }