summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20040611-1.c
blob: 8a5528b9054ed2fe0ea5917d99609bf918835109 (plain)
1
2
3
4
5
6
7
8
/* This would cause PRE load motion to generate invalid code and ICE */
void foo (char *name)
{
  if (*name)
    name ++;
  while (name[0]);
  asm ("" : "=r" (name));
}