summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr50333.c
blob: 47577dcccc85c9d6b599af23f1f5d250520a9019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */

static inline void
unext(unsigned int *_ui, unsigned _len, unsigned int _ui0)
{
    unsigned j = 1;
    while (++j<_len)
      ;
    _ui[j-1]=_ui0;
}
unsigned int
ncwrs_urow(unsigned _n, unsigned _k, unsigned int *_u)
{
  unsigned k;
  for(k=2; k<_n; k++)
    unext(_u+1,_k+1,1);
}