blob: 4603c0cb6e12f7c296e40dec0f1209b34a4c21ff [file] [log] [blame]
/* PR debug/105415 */
/* { dg-do compile } */
/* { dg-require-effective-target pthread } */
/* { dg-options "-O2 -ftree-parallelize-loops=2 -fcompare-debug" } */
int m;
static int n;
void
foo (void)
{
int s = 0;
while (m < 1)
{
s += n;
++m;
}
}
void
bar (int *arr, int i)
{
while (i < 1)
arr[i++] = 1;
}