aboutsummaryrefslogtreecommitdiff
path: root/openmp/libompd/test/api_tests/test_ompd_get_thread_handle.c
blob: 7b08fb4ed913d66a250c3ed327bbd3f5e053afc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %gdb-compile 2>&1 | tee %t.compile
// RUN: %gdb-test -x %s.cmd %t 2>&1 | tee %t.out | FileCheck %s
// RUN: %gdb-test -x %s.cmd2 %t 2>&1 | tee %t.out2 | FileCheck %s

#include <omp.h>
#include <stdio.h>

int main() {
  omp_set_num_threads(2);
#pragma omp parallel
  { printf("Parallel level 1, thread num = %d.\n", omp_get_thread_num()); }
  return 0;
}
// CHECK-NOT: Failed
// CHECK-NOT: Skip