summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/vla-5.c
blob: 6c6d5517af845a876ae4a6d155b0a360c0ed3af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }

void foo(int n, int i)
{
  int A[n];

  #pragma omp parallel sections lastprivate(A)
    {
      A[i] = 1;
    }
}