view gcc/testsuite/gcc.c-torture/compile/pr94621.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* PR tree-optimization/94621 */

struct S { int c, e[]; };

static inline int
foo (struct S *m, int r, int c)
{
  int (*a)[][m->c] = (int (*)[][m->c])&m->e;
  return (*a)[r][c];
}

void
bar (struct S *a)
{
  foo (a, 0, 0);
}