]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/testsuite/libgomp.c/pr99555-1.c
bd33b93716bf6c426c503a99970dc003b06e85e5
[thirdparty/gcc.git] / libgomp / testsuite / libgomp.c / pr99555-1.c
1 // PR99555 "[OpenMP/nvptx] Execution-time hang for simple nested OpenMP 'target'/'parallel'/'task' constructs"
2
3 // { dg-additional-options "-O0" }
4
5 #include <unistd.h> // For 'alarm'.
6
7 #include "../libgomp.c-c++-common/on_device_arch.h"
8
9 int main (void)
10 {
11 if (on_device_arch_nvptx ())
12 alarm (4); /*TODO Until resolved, make sure that we exit quickly, with error status.
13 { dg-xfail-run-if "PR99555" { offload_device_nvptx } } */
14
15 #pragma omp target
16 #pragma omp parallel // num_threads(1)
17 #pragma omp task
18 ;
19
20 return 0;
21 }