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