[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Semantics / OpenMP / allocate-clause01.f90
blob2b9a72e928eba93c22b7fa0241995e60c17658a9
1 ! REQUIRES: openmp_runtime
3 ! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
4 ! OpenMP Version 5.2
5 ! The allocate clause's allocator modifier must be of type allocator_handle
6 ! and the align modifier must be constant, positive integer expression
8 subroutine allocate()
9 use omp_lib
11 integer, allocatable :: a, b, c
13 !ERROR: The parameter of the ALLOCATE clause must be a positive integer expression
14 !$omp allocators allocate(-1: a)
15 allocate(a)
17 !ERROR: The parameter of the ALLOCATE clause must be a positive integer expression
18 !$omp allocators allocate(allocator(-2), align(-3): b)
19 allocate(b)
21 !ERROR: The parameter of the ALLOCATE clause must be a positive integer expression
22 !$omp allocators allocate(align(-4): c)
23 allocate(c)
24 end subroutine