[gn] port afa8aeeeec (RISCVGenExegesis.inc)
[llvm-project.git] / openmp / runtime / test / env / kmp_aff_disable_hwloc.c
blob5f848ac40492bc1a057b659affa8c3affa16474f
1 // RUN: %libomp-compile && env KMP_AFFINITY=disabled KMP_TOPOLOGY_METHOD=hwloc %libomp-run
2 // REQUIRES: hwloc
3 #include <stdio.h>
4 #include <stdlib.h>
6 // Test will assert() without fix
7 int test_affinity_disabled_plus_hwloc() {
8 #pragma omp parallel
9 {}
10 return 1;
13 int main(int argc, char **argv) {
14 int i, j;
15 int failed = 0;
17 if (!test_affinity_disabled_plus_hwloc()) {
18 failed = 1;
20 return failed;