Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / generic02.f90
blob551b897470cebccf5c85f366252617622941b8d3
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 program test
3 !ERROR: Generic interface 'generic' must not use abstract interface 'abstract' as a specific procedure
4 interface generic
5 subroutine explicit(n)
6 integer, intent(in) :: n
7 end subroutine
8 procedure implicit
9 procedure abstract
10 end interface
11 abstract interface
12 subroutine abstract
13 end subroutine
14 end interface
15 !ERROR: Specific procedure 'implicit' of generic interface 'generic' must have an explicit interface
16 external implicit
17 call generic(1)
18 end