You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
libcxxabi
libunwind
lld
lldb
llvm
openmp
cmake
libomptarget
offload
runtime
cmake
doc
src
test
api
atomic
barrier
critical
env
flush
lock
master
misc_bugs
ompt
parallel
tasking
bug_nested_proxy_task.c
bug_proxy_task_dep_waiting.c
bug_serial_taskgroup.c
kmp_task_reduction_nest.cpp
kmp_taskloop.c
nested_parallel_tasking.c
nested_task_creation.c
omp_task.c
omp_task_final.c
omp_task_firstprivate.c
omp_task_if.c
omp_task_imp_firstprivate.c
omp_task_priority.c
omp_task_private.c
omp_task_shared.c
omp_taskloop_grainsize.c
omp_taskloop_num_tasks.c
omp_taskwait.c
omp_taskyield.c
threadprivate
worksharing
CMakeLists.txt
lit.cfg
lit.site.cfg.in
omp_my_sleep.h
omp_testsuite.h
tools
.clang-format
CMakeLists.txt
README.txt
www
.arcconfig
.gitignore
CMakeLists.txt
CREDITS.txt
LICENSE.txt
README.rst
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
36 lines
526 B
C
36 lines
526 B
C
![]() |
// RUN: %libomp-compile-and-run
|
||
|
#include <stdio.h>
|
||
|
#include <omp.h>
|
||
|
#include "omp_my_sleep.h"
|
||
|
|
||
|
/*
|
||
|
* This test creates tasks that themselves create a new task.
|
||
|
* The runtime has to take care that they are correctly freed.
|
||
|
*/
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
#pragma omp task
|
||
|
{
|
||
|
#pragma omp task
|
||
|
{
|
||
|
my_sleep( 0.1 );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#pragma omp parallel num_threads(2)
|
||
|
{
|
||
|
#pragma omp single
|
||
|
#pragma omp task
|
||
|
{
|
||
|
#pragma omp task
|
||
|
{
|
||
|
my_sleep( 0.1 );
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
printf("pass\n");
|
||
|
return 0;
|
||
|
}
|