| ! RUN: %python %S/test_errors.py %s %flang_fc1 -fopenmp |
| ! 2.11.3 allocate Directive |
| ! A type parameter inquiry cannot appear in an allocate directive. |
| type my_type(kind_param, len_param) |
| INTEGER, KIND :: kind_param |
| INTEGER, LEN :: len_param |
| type(my_type(2, 4)) :: my_var |
| INTEGER, DIMENSION(:), ALLOCATABLE :: y |
| !ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive |
| !ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive |
| !ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive |
| !ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive |
| !$omp allocate(my_var%kind_param) |
| !ERROR: A type parameter inquiry cannot appear on the ALLOCATE directive |
| !$omp allocate(my_var%len_param) |