blob: 2ad87c914bc7db290e21a1a269bf330a21356b2a [file] [edit]
! RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=50
! Test the declare mapper construct with abstract type.
type, abstract :: t1
integer :: y
end type t1
!ERROR: ABSTRACT derived type may not be used here
!ERROR: Reference to object with abstract derived type 't1' must be polymorphic
!$omp declare mapper(mm : t1::x) map(x, x%y)
end