Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/execute/pr57130.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 rtl-optimization/57130 */ struct S { int a, b, c, d; } s[2] = { { 6, 8, -8, -5 }, { 0, 2, -1, 2 } }; __attribute__((noinline, noclone)) void foo (struct S r) { static int cnt; if (__builtin_memcmp (&r, &s[cnt++], sizeof r) != 0) __builtin_abort (); } int main () { struct S r = { 6, 8, -8, -5 }; foo (r); r = (struct S) { 0, 2, -1, 2 }; foo (r); return 0; }