aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr108502.f90
blob: 45f73849c573c66226e2154ce78d127a892c1974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
! { dg-options "-O2 -ffrontend-optimize" }
! PR fortran/108502 - ICE in gfc_check_dependency
! Contributed by G.Steinmetz

integer function n()
  integer :: a(1)
  a = [1] / 0
end
program p
  integer :: b = n() ! { dg-error "must be an intrinsic function" }
end