1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
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.
11 integer, allocatable
:: arr1(:), arr2(:, :), arr3(:), arr4(:, :)
13 !$omp allocators allocate(arr3)
14 allocate(arr3(3), arr4(4, 4))
17 !ERROR: Object 'arr1' in ALLOCATORS directive not found in corresponding ALLOCATE statement
18 !$omp allocators allocate(omp_default_mem_alloc: arr1, arr2)
21 end subroutine allocate