view gcc/testsuite/gfortran.dg/external_implicit_none.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! Tests fix for PR18737 - ICE on external symbol of unknown type.
program test
  implicit none
  real(8) :: x
  external bug  ! { dg-error "has no IMPLICIT type" }

  x = 2
  print *, bug(x)
  
end program test