diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.c/thread-limit-3.c')
-rw-r--r-- | libgomp/testsuite/libgomp.c/thread-limit-3.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.c/thread-limit-3.c b/libgomp/testsuite/libgomp.c/thread-limit-3.c new file mode 100644 index 0000000..af9bd78 --- /dev/null +++ b/libgomp/testsuite/libgomp.c/thread-limit-3.c @@ -0,0 +1,12 @@ +#include <stdlib.h> +#include <omp.h> + +int +main () +{ + #pragma omp target if (0) + #pragma omp teams thread_limit (1) + if (omp_get_thread_limit () != 1) + abort (); + return 0; +} |