xref: /llvm-project/openmp/libompd/test/api_tests/test_ompd_get_thread_in_parallel.c (revision 1099498e3f35b2ad4b021ba3888b590259124e74)
1 // RUN: %gdb-compile 2>&1 | tee %t.compile
2 // RUN: %gdb-test -x %s.cmd %t 2>&1 | tee %t.out | FileCheck %s
3 
4 #include <omp.h>
5 #include <stdio.h>
6 
main()7 int main() {
8   omp_set_num_threads(4);
9 #pragma omp parallel
10   { printf("Parallel level 1, thread num = %d.\n", omp_get_thread_num()); }
11   return 0;
12 }
13 // CHECK-NOT: Failed
14 // CHECK-NOT: Skip
15