summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr21532.c
blob: 1b8bc22484951bf295b5940d80d754f734d8d89f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int
bar (unsigned char key)
{
  unsigned char buf[sizeof (unsigned long)+2];
  unsigned char b;
  unsigned char *buf_ = buf + 1;

  for (b = 8; b != 0; b--)
    buf_[b] = key >> b;

  return foo (b);
}