summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/num-threads-1.c
blob: f792ef96bcde2d9bf7c1a5891ad8d236d8230938 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

extern void bar(void);
void foo(void)
{
  #pragma omp parallel num_threads (0)	/* { dg-warning "must be positive" } */
    {
      bar ();
    }
}