[AMDGPU] Test codegen'ing True16 additions.
[llvm-project.git] / flang / test / Semantics / OpenMP / allocators01.f90
blobd674438b2ab207024515386da0d76f0fe851d747
1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
2 ! OpenMP Version 5.2
3 ! 6.7 allocators construct
4 ! A list item that appears in an allocate clause must appear as
5 ! one of the variables that is allocated by the allocate-stmt in
6 ! the associated allocator structured block.
8 subroutine allocate()
9 use omp_lib
11 integer, allocatable :: arr1(:), arr2(:, :), arr3(:), arr4(:, :)
13 !$omp allocators allocate(arr3)
14 allocate(arr3(3), arr4(4, 4))
15 !$omp end allocators
17 !ERROR: Object 'arr1' in ALLOCATORS directive not found in corresponding ALLOCATE statement
18 !$omp allocators allocate(omp_default_mem_alloc: arr1, arr2)
19 allocate(arr2(2, 2))
21 end subroutine allocate