LLVM OpenMP 20.0.0git
bug63197.c
Go to the documentation of this file.
1// RUN: %libomp-compile-and-run | FileCheck %s
2
3#include <omp.h>
4#include <stdio.h>
5
6int main(int argc, char *argv[]) {
7#pragma omp parallel num_threads(3) if (0)
8#pragma omp single
9 { printf("BBB %2d\n", omp_get_num_threads()); }
10
11#pragma omp parallel
12#pragma omp single
13 {
14 if (omp_get_num_threads() != 3)
15 printf("PASS\n");
16 }
17 return 0;
18}
19
20// CHECK: PASS
int omp_get_num_threads()
int main()
Definition: test-touch.c:21