[memprof] Upgrade a unit test to MemProf Version 3 (#117063)
[llvm-project.git] / openmp / runtime / test / affinity / omp-places-invalid-syntax.c
blobc2edcef38f7f8df2a86951cb01d3d35d7291d6de
1 // RUN: %libomp-compile
2 // RUN: env KMP_SETTINGS=1 OMP_PLACES=invalid %libomp-run 2>&1 | FileCheck --check-prefix=INVALID %s
3 // RUN: env KMP_SETTINGS=1 OMP_PLACES='sockets(' %libomp-run 2>&1 | FileCheck --check-prefix=SOCKETS %s
4 // RUN: env KMP_SETTINGS=1 OMP_PLACES='threads()' %libomp-run 2>&1 | FileCheck --check-prefix=THREADS %s
5 //
6 // INVALID-DAG: Effective settings
7 // INVALID: OMP_PLACES=
8 // INVALID-SAME: cores
9 //
10 // SOCKETS-DAG: Effective settings
11 // SOCKETS: OMP_PLACES=
12 // SOCKETS-SAME: sockets
14 // THREADS-DAG: Effective settings
15 // THREADS: OMP_PLACES=
16 // THREADS-SAME: threads
18 // REQUIRES: affinity
20 #include "omp_testsuite.h"
22 int main() {
23 go_parallel();
24 return get_exit_value();