summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/vla-4.c
blob: 2c3c0aa43b7d53f0d129562a45939249a01e8730 (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 firstprivate(A)
    {
      A[i] = 1;
    }
}