summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20070121.c
blob: 88af8bf628659f415a66e551dd97851e2f0d54b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR rtl-optimization/29329 */
/* Origin: Debian GCC Maintainers <debian-gcc@lists.debian.org> */
/* Testcase by: Andrew Pinski <pinskia@gmail.com> */

struct node234_Tag
{
  int t1;
  int kids[4];
  void *elems[3];
};

void *add234_internal(struct node234_Tag *n, int ei)
{
  int j;
  for (j = ei; j < 2 && n->elems[j+1];)
    j++;
  n->kids[j+1] = 0;
}