libgomp/testsuite/libgomp.c/allocator-4.c
raw| 1 | /* { dg-set-target-env-var OMP_ALLOCATOR "omp_const_mem_space:alignment=3,pinned=" } */ |
| 2 | |
| 3 | /* { dg-output ".*libgomp: Missing value at the end of environment variable OMP_ALLOCATOR=omp_const_mem_space:alignment=3,pinned=.*" } */ |
| 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 | } |