aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr46723.c
blob: 40c6e8cd69015680d56763b6fc897132054fcf34 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

short *m;
void test()
{
  short x = 128;
  unsigned int i;
  for (i = 0; i < 128; ++i, x = (unsigned short)x + 1)
    m[i] = x;
}