aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr113396.c
blob: 585f717bddab735bc4824806f5ebf6165a0ea89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run } */
/* { dg-require-effective-target int128 } */

unsigned char m[] = {5, 79, 79, 79, 79};
__int128 p;
int main()
{
  int g1 = 0;
  p = 0;
  for (int aj = 0; aj < 256; aj++)
   {
      m[0] = -4;
      for (; p >= 0; p -= 1) {
        g1 = m[p];
      }
  }
  if (g1 != 0xfc)
    __builtin_abort();
}