diff --git a/test/rt/nanos6/CMakeLists.txt b/test/rt/nanos6/CMakeLists.txt index 6cae6d8..01eb5aa 100644 --- a/test/rt/nanos6/CMakeLists.txt +++ b/test/rt/nanos6/CMakeLists.txt @@ -8,3 +8,4 @@ endfunction() nanos6_rt_test(simple-task.c) nanos6_rt_test(nested-task.c) +nanos6_rt_test(several-tasks.c) diff --git a/test/rt/nanos6/several-tasks.c b/test/rt/nanos6/several-tasks.c new file mode 100644 index 0000000..6afae49 --- /dev/null +++ b/test/rt/nanos6/several-tasks.c @@ -0,0 +1,14 @@ +int main(void) +{ + for(int i = 0; i < 10000; i++) + { + #pragma oss task + { + for(volatile long j = 0; j < 1000000L; j++) + { + } + } + } + #pragma oss taskwait + return 0; +}