summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/sections-4.c
blob: 62a2ecddf9adbf6e4526c42223a0898cb6bfbcde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c++/24613 */
/* { dg-do compile } */

#pragma omp section	/* { dg-error "may only be used in" } */

int i;

void
foo (void)
{
  #pragma omp section	/* { dg-error "may only be used in" } */
    i++;
}