summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/vla-3.c
blob: b1677b833ef7d26efdd1a365a09674236886a769 (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 shared(A)
    {
      A[i] = sizeof(A);
    }
}