1 // RUN: %libomp-compile-and-run
4 Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36720
6 Assertion failure at kmp_runtime.cpp(1715): nthreads > 0.
7 OMP: Error #13: Assertion failure at kmp_runtime.cpp(1715).
9 The assertion fails even with OMP_NUM_THREADS=1. If the second task is removed,
10 everything runs to completion. If the "omp parallel for" directives are removed
11 from inside the tasks, once again everything runs fine.
20 #pragma omp parallel for
21 for (i
= 0; i
< N
; i
++)
28 #pragma omp parallel for
29 for (i
= 0; i
< N
; ++i
)