brintos

brintos / llvm-project-archived public Read only

0
0
Text · 465 B · cd7f3dd Raw
20 lines · c
1// RUN: %gdb-compile 2>&1 | tee %t.compile2// RUN: %gdb-test -x %s.cmd %t 2>&1 | tee %t.out | FileCheck %s3 4#include <omp.h>5#include <stdio.h>6 7int main() {8  omp_set_num_threads(4);9#pragma omp parallel10  {11    printf("Parallel level 1, thread num = %d.\n", omp_get_thread_num());12    omp_set_num_threads(3);13#pragma omp parallel14    { printf("Parallel level 2, thread num = %d", omp_get_thread_num()); }15  }16  return 0;17}18// CHECK-NOT: Failed19// CHECK-NOT: Skip20