[llvm] Stop including unordered_map (NFC)
[llvm-project.git] / openmp / runtime / test / tasking / nested_task_creation.c
blobc7c25fcddef698fba4c6198187de87663ae77e19
1 // RUN: %libomp-compile-and-run
2 #include <stdio.h>
3 #include <omp.h>
4 #include "omp_my_sleep.h"
6 /*
7 * This test creates tasks that themselves create a new task.
8 * The runtime has to take care that they are correctly freed.
9 */
11 int main()
13 #pragma omp task
15 #pragma omp task
17 my_sleep( 0.1 );
21 #pragma omp parallel num_threads(2)
23 #pragma omp single
24 #pragma omp task
26 #pragma omp task
28 my_sleep( 0.1 );
33 printf("pass\n");
34 return 0;