Debian Codegraph @

gcc/testsuite/gfortran.dg/intent_decl_1.f90

raw
1 ! { dg-do compile }
2 !
3 ! PR 85088: improve diagnostic for bad INTENT declaration
4 !
5 ! Contributed by Janus Weil <[email protected]>
6
7 subroutine s(x, y, z)
8 integer, intent(int) :: x ! { dg-error "Bad INTENT specification" }
9 integer, intent :: y ! { dg-error "Bad INTENT specification" }
10 integer, inten :: z ! { dg-error "Invalid character" }
11 end