1 ! REQUIRES: openmp_runtime
3 ! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
5 ! 6.7 allocators construct
6 ! A variable that is part of another variable (as an array or
7 ! structure element) cannot appear in an allocatprs construct.
13 integer, allocatable
:: array(:)
16 type(my_type
) :: my_var
18 !ERROR: A variable that is part of another variable (as an array or structure element) cannot appear on the ALLOCATORS directive
19 !$omp allocators allocate(my_var%array)
20 allocate(my_var
%array(10))
22 end subroutine allocate