aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr105630.c
blob: c39ca7dda272a730da3d6059fb3cf631a3859861 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR debug/105630 */
/* { dg-do compile { target pthread } } */
/* { dg-options "-O1 -ftree-parallelize-loops=2 -fcompare-debug" } */

int m;
static int n;

void
foo (void)
{
  int *arr[] = { &n, &n, &n };
  int unused = n;

  m = 0;
}

void
bar (int *arr, int i)
{
  while (i < 1)
    arr[i++] = 1;
}