Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/pr54981.c

16 lines
245 B
C

/* { dg-do compile } */
/* { dg-options "-O -ftree-loop-distribute-patterns -fcompare-debug" } */
extern void bar(unsigned *, char *);
void foo(char *s)
{
unsigned i;
char t[2];
bar(&i, t);
for (i = 0; i < 2; i++)
s[i] = t[i];
}