[AArch64] Merge stores of D-register values with different modes
[official-gcc.git] / gcc / testsuite / gfortran.dg / missing_optional_dummy_5.f90
blobe3324f57600d8e24b0605e16c175ca96e502b73e
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/34848
5 !
6 ! This was before giving an ICE; additionally
7 ! the "0" for the string size of the absent optional
8 ! argument was missing.
10 module krmod
11 contains
12 subroutine doit()
13 implicit none
14 real :: doit1(2)
15 doit1 = tm_doit()
16 return
17 end subroutine doit
18 function tm_doit(genloc)
19 implicit none
20 character, optional :: genloc
21 real :: tm_doit(2)
22 tm_doit = 42.0
23 end function tm_doit
24 end module krmod
26 ! { dg-final { scan-tree-dump " tm_doit \\(&parm\.., 0B, 0\\);" "original" } }