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
13//
14// THREADS-DAG: Effective settings
15// THREADS: OMP_PLACES=
16// THREADS-SAME: threads
17//
18// REQUIRES: affinity
19
20#include "omp_testsuite.h"
21
22int main() {
23 go_parallel();
24 return get_exit_value();
25}
26

source code of openmp/runtime/test/affinity/omp-places-invalid-syntax.c