libgomp/testsuite/libgomp.c/allocator-6.c
raw| 1 | /* { dg-set-target-env-var OMP_ALLOCATOR "omp_default_mem_space:alignment=3" } */ |
| 2 | |
| 3 | /* { dg-output ".*libgomp: Allocator of environment variable OMP_ALLOCATOR cannot be created, using omp_default_mem_alloc instead.*" } */ |
| 4 | /* OMP_ALLOCATOR's alignment is not power of 2 -> 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 | } |