Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/20041104-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* This testcase exposed the same bug as PR 15342. */ /* { dg-options "-O2 -frename-registers -fno-schedule-insns" } */ void *memcpy (void *, const void *, __SIZE_TYPE__); void f (int n, int (*x)[4]) { while (n--) { int f = x[0][0]; if (f <= 0) memcpy (&x[1], &x[0], sizeof (x[0])); else memcpy (&x[f], &x[0], sizeof (x[0])); f = x[0][2]; x[0][1] = f; } }