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

void f1(void)
{
  #pragma omp critical a	// { dg-error "expected" }
    ;
  #pragma omp critical (	// { dg-error "expected identifier" }
    ;
  #pragma omp critical (a	// { dg-error "expected .\\)." }
    ;
  #pragma omp critical (a b)	// { dg-error "expected .\\)." }
}				// { dg-error "" }