aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Semantics/OpenMP/allocators07.f90
blob: baaacee8b691ebad2a63335b6ec48f6ea9de2d2f (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
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=52

subroutine f00
  implicit none
  integer, allocatable :: a(:)

  !$omp allocators allocate(a)
!ERROR: The body of an ALLOCATORS construct should be an ALLOCATE statement
  continue
end

subroutine f01
  implicit none
  integer, allocatable :: a(:)

!ERROR: The body of an ALLOCATORS construct should be an ALLOCATE statement
  !$omp allocators allocate(a)
  !$omp end allocators
end

subroutine f02
  implicit none
  integer, allocatable :: a(:)

!ERROR: The body of an ALLOCATORS construct should be an ALLOCATE statement
  !$omp allocators allocate(a)
end