[OpenACC] Implement 'collapse' for combined constructs.
[llvm-project.git] / openmp / runtime / test / env / omp_alloc_env_invalid.c
blob6b2e9d8213df4a15098dbc7beb6f7e4991897d96
1 // RUN: %libomp-compile
2 // RUN: env OMP_ALLOCATOR=111 %libomp-run 2>&1 | FileCheck %s
3 // RUN: env OMP_ALLOCATOR=omp_default_mem_alloc_xyz %libomp-run 2>&1 | FileCheck %s
4 // UNSUPPORTED: gcc
6 // Both invocations of the test should produce (different) warnings:
7 // OMP: Warning #42: OMP_ALLOCATOR: "111" is an invalid value; ignored.
8 // OMP: Warning #189: Allocator omp_const_mem_alloc is not available, will use default allocator.
9 #include <stdio.h>
10 #include <omp.h>
11 int main() {
12 volatile int n = omp_get_max_threads(); // causes library initialization
13 return 0;
16 // CHECK: {{^OMP: Warning #[0-9]+}}: {{.*$}}