view gcc/testsuite/gcc.dg/torture/pr94949.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* { dg-do run } */
/* { dg-additional-options "-fallow-store-data-races" } */

static int x = 1;
static volatile int y = -1;
int
main()
{
  for (int i = 0; i < 128; ++i)
    {
      if (i == y)
	x = i;
    }
  if (x != 1)
    __builtin_abort ();
  return 0;
}