summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/flush-2.c
blob: 25878c85b18d5c6711540a8265ebe07d844d7142 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-message "undeclared identifier is reported only once" "reminder" { target *-*-* } 0 } */
void f1(void)
{
  #pragma omp flush a	/* { dg-error "expected" } */
  #pragma omp flush (	/* { dg-error "expected identifier" } */
  #pragma omp flush (b	/* { dg-error "undeclared|expected|for each" } */
  #pragma omp flush (c d)	/* { dg-error "undeclared|expected" } */
  #pragma omp flush (e)		/* { dg-error "undeclared" } */
}