aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c/pr95620.c
blob: b310b56555b2e255dda4302af0cf68947fb4c748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do link { target { { i?86-*-* x86_64-*-* } && lp64 } } }
/* { dg-require-effective-target lto } */
/* { dg-additional-options "-flto -mcmodel=medium" } */

double a[353783808];
int b, c, d;

int
main()
{
  for (; b;)
#pragma omp parallel
    a[c] = 1;
  for (;; b++)
    if (a[c])
      d++;
  return 0;
}