blob: d0e31ee8727216f2d2fdb9ce2778b859b6f4667d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
subroutine f
integer, allocatable :: A1, A2, B(:), C
!$omp declare target
!$omp allocators ! OK
allocate(A1)
!$omp allocators allocate(align(8) : a2) ! { dg-error "ALLOCATORS directive at .1. inside a target region must specify an ALLOCATOR modifier for 'a2'" }
allocate(A2)
!$omp allocate ! { dg-error "ALLOCATE directive at .1. inside a target region must specify an ALLOCATOR clause" }
allocate(B(5))
!$omp allocate(c) ! { dg-error "ALLOCATE directive at .1. inside a target region must specify an ALLOCATOR clause for 'c'" }
allocate(C)
end
subroutine g
integer, allocatable :: A1, A2, B(:), C
!$omp target
!$omp single
!$omp allocators ! OK
allocate(A1)
!$omp allocators allocate(align(8) : a2) ! { dg-error "ALLOCATORS directive at .1. inside a target region must specify an ALLOCATOR modifier for 'a2'" }
allocate(A2)
!$omp allocate ! { dg-error "ALLOCATE directive at .1. inside a target region must specify an ALLOCATOR clause" }
allocate(B(5))
!$omp allocate(c) ! { dg-error "ALLOCATE directive at .1. inside a target region must specify an ALLOCATOR clause for 'c'" }
allocate(C)
!$omp end single
!$omp end target
end
|