2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr45869.c
blobe01977bf9fb069e26ce19b0cc5a5a43cfb4d7ed8
1 /* { dg-do compile } */
3 char *
4 foo (unsigned int count, void **list)
6 char *minaddr = (char *) list[0];
7 unsigned int i; /* NOTE: change of type to "int" eliminates the ICE */
8 for (i = 1; i < count; i++)
10 char *addr = (char *) list[i];
11 if (addr < minaddr)
12 minaddr = addr;
14 return minaddr;