gcc/testsuite/gfortran.dg/gomp/allocate-pinned-1.f90
raw| 1 | ! Test that the ompx_gnu_pinned_mem_alloc is accepted by the parser |
| 2 | |
| 3 | module m |
| 4 | use iso_c_binding |
| 5 | integer, parameter :: omp_allocator_handle_kind = c_intptr_t |
| 6 | integer (kind=omp_allocator_handle_kind), & |
| 7 | parameter :: ompx_gnu_pinned_mem_alloc = 200 |
| 8 | end |
| 9 | |
| 10 | subroutine f () |
| 11 | use m |
| 12 | implicit none |
| 13 | ! The "Sorry" is here temporarily only to avoid excess error failures. |
| 14 | integer, save :: i |
| 15 | !$omp allocate(i) allocator(ompx_gnu_pinned_mem_alloc) |
| 16 | end |