aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.c++/pr69393.C
blob: 02605e0ef0e9bc15ac591b0ae1634bf3fc04f350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do run }
// { dg-require-effective-target lto }
// { dg-options "-flto -g" }

int e = 5;

int
main ()
{
  int a[e];
  a[0] = 6;
#pragma omp parallel
  if (a[0] != 6)
    __builtin_abort ();
  return 0;
}