summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/flush-2.C
blob: a5c0df89cc28239cfcbc0f972e7ae8ff54dbce1d (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }

void f1(void)
{
  #pragma omp flush a		// { dg-error "expected" }
  #pragma omp flush (		// { dg-error "expected" }
  #pragma omp flush (b		// { dg-error "declared|expected" }
  #pragma omp flush (c d)	// { dg-error "declared|expected" }
  #pragma omp flush (e)		// { dg-error "declared" }
}