2 ! { dg-options "-ffrontend-optimize" }
5 ! An unguarded union access was wrongly enabling a frontend optimization on a
6 ! string comparison, leading to an ICE.
8 ! Original testcase from Steve Chapel <steve.chapel@a2pg.com>.
9 ! Reduced by Steven G. Kargl <kargl@gcc.gnu.org>.
12 subroutine modelg(ncm
)
14 integer, parameter :: pc
= 30, pm
= pc
- 1
16 character*4 catt(pm
,2)
17 integer ncm
,iatt(pm
,pc
)
19 if (catt(i
,1)//catt(i
,2).eq
.'central') exit