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

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

  #pragma omp parallel default(none)	// { dg-error "enclosing" }
    {
      A[0] = 0;				// { dg-error "'A' not specified" }
    }
}