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 // RUN: %gdb-test -x %s.cmd2 %t 2>&1 | tee %t.out2 \
4 // RUN: | FileCheck --check-prefix CMD2 %s
5 #include <omp.h>
6 #include <stdio.h>
7
main()8 int main() {
9 omp_set_num_threads(4);
10 #pragma omp parallel
11 { printf("Parallel level 1, thread num = %d.\n", omp_get_thread_num()); }
12 return 0;
13 }
14 // CHECK-NOT: Failed
15 // CHECK-NOT: Skip
16
17 // CMD2: Run 'ompd init' before running any of the ompd commands
18 // CMD2: Error in Initialization
19