summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openmp/runtime/test/ompt/parallel/nested_threadnum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openmp/runtime/test/ompt/parallel/nested_threadnum.c b/openmp/runtime/test/ompt/parallel/nested_threadnum.c
index 32d3edbb55f..a24853007d3 100644
--- a/openmp/runtime/test/ompt/parallel/nested_threadnum.c
+++ b/openmp/runtime/test/ompt/parallel/nested_threadnum.c
@@ -7,6 +7,7 @@ int main() {
omp_set_nested(1);
#pragma omp parallel num_threads(2)
{
+#pragma omp barrier
#pragma omp parallel num_threads(2)
{ print_frame(0); }
}
OpenPOWER on IntegriCloud