Debian Codegraph @

gcc/testsuite/gfortran.dg/pr93499.f90

raw
1 ! { dg-do compile }
2 ! PR 93499 - this used to ICE. Original test case by Gerhard Steinmetz.
3
4 program p
5 integer :: a((0.)/0) ! { dg-error "must be constant of INTEGER type" }
6 type t(n)
7 integer, len :: n
8 end type t
9 type(t((0)/0)) :: x ! { dg-error "does not simplify to an INTEGER constant" }
10 end