summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/critical-2.c
blob: d1ba3963f8f0fe73fde3c4dc654afadcc8eae466 (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 "expected expression" } */