mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 15:46:44 +00:00

A procedure defined in an ABSTRACT INTERFACE may not appear as a specific procedure in a generic interface. Differential Revision: https://reviews.llvm.org/D145102
19 lines
547 B
Fortran
19 lines
547 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
program test
|
|
!ERROR: Generic interface 'generic' must not use abstract interface 'abstract' as a specific procedure
|
|
interface generic
|
|
subroutine explicit(n)
|
|
integer, intent(in) :: n
|
|
end subroutine
|
|
procedure implicit
|
|
procedure abstract
|
|
end interface
|
|
abstract interface
|
|
subroutine abstract
|
|
end subroutine
|
|
end interface
|
|
!ERROR: Specific procedure 'implicit' of generic interface 'generic' must have an explicit interface
|
|
external implicit
|
|
call generic(1)
|
|
end
|