libgomp/testsuite/libgomp.c/allocator-5.c
raw| 1 | /* { dg-set-target-env-var OMP_ALLOCATOR "omp_const_mem_space:access=none,pinned=false" } */ |
| 2 | |
| 3 | /* { dg-output ".*libgomp: Invalid value for environment variable OMP_ALLOCATOR when parsing: none,pinned=false.*" } */ |
| 4 | /* OMP_ALLOCATOR syntax error -> use omp_default_mem_alloc. */ |
| 5 | |
| 6 | #include <omp.h> |
| 7 | |
| 8 | int |
| 9 | main () |
| 10 | { |
| 11 | omp_allocator_handle_t m = omp_get_default_allocator (); |
| 12 | if (m != omp_default_mem_alloc) |
| 13 | __builtin_abort (); |
| 14 | return 0; |
| 15 | } |