URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [whole_file_12.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-fwhole-file" }!! Tests the fix PR40011 comment 17 in which the explicit interface was! being ignored and the missing argument was not correctly handled, which! led to an ICE.!! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr!Implicit Nonecall sub(1,2)call sub(1,2,3)containssubroutine sub(i,j,k)Implicit NoneInteger, Intent( In ) :: iInteger, Intent( In ) :: jInteger, Intent( In ), Optional :: kintrinsic presentwrite(*,*)' 3 presence flag ',present(k)write(*,*)' 1st arg ',iwrite(*,*)' 2nd arg ',jif (present(k)) thenwrite(*,*)' 3rd arg ',kelsewrite(*,*)' 3rd arg is absent'endifreturnend subroutineend
