view gcc/testsuite/gcc.dg/torture/pr83580.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* { dg-do run } */

int a[2] = { 0, 1 };
int x = 129;

int
main ()
{
  volatile int v = 0;
  int t = x, i;
  for (i = 0; i < 1 + v + v + v + v + v + v + v + v + a[a[0]]; i++)
    t = a[(signed char) (130 - x)];
  if (t != 1)
    __builtin_abort ();
  return 0;
}