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#include <omp.h>
4#include <stdio.h>
5
6int main() {
7 omp_set_num_threads(4);
8#pragma omp parallel
9 { printf(format: "Parallel level 1, thread num = %d.\n", omp_get_thread_num()); }
10 return 0;
11}
12// CHECK-NOT: Failed
13// CHECK-NOT: Skip
14

source code of openmp/libompd/test/api_tests/test_ompd_device_initialize.c