| 1 |
implicit none |
| 2 |
integer, allocatable :: a, b |
| 3 |
integer :: q |
| 4 |
integer :: arr(2) |
| 5 |
|
| 6 |
!$omp allocators allocate(align(64): a) |
| 7 |
allocate(a, b) ! OK |
| 8 |
!$omp end allocators |
| 9 |
|
| 10 |
!$omp allocators allocate(align(128): b) |
| 11 |
allocate(a, b) ! OK (assuming not allocated) |
| 12 |
|
| 13 |
|
| 14 |
!$omp allocators allocate(align(62.0): a) ! { dg-error "a scalar positive constant integer alignment expression" } |
| 15 |
allocate(a) |
| 16 |
|
| 17 |
|
| 18 |
!$omp allocators allocate(align(64): a, b) ! { dg-error "'b' specified in 'allocate' at \\(1\\) but not in the associated ALLOCATE statement" } |
| 19 |
allocate(a) |
| 20 |
!$omp end allocators |
| 21 |
|
| 22 |
end |