aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/block-8.c
blob: 177acaa28c0426b2f0019886973941ab08e1c7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile }
// PR 24451

int foo()
{
  int i;

  #pragma omp parallel for
  for (i = 0; i < 10; ++i)
    return 0;			// { dg-error "invalid exit" }
}