Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / missing_optional_dummy_4.f90
blob1558f17d8fbb66418368784f711959fb65051873
1 ! { dg-do compile }
2 ! { dg-options "-fdump-tree-original" }
4 ! PR fortran/34848
5 !
6 ! The "0" for the string size of the absent optional
7 ! argument was missing.
9 module krmod
10 contains
11 subroutine doit()
12 implicit none
13 real :: doit1
14 doit1 = tm_doit()
15 return
16 end subroutine doit
17 function tm_doit(genloc)
18 implicit none
19 character, optional :: genloc
20 real :: tm_doit
21 tm_doit = 42.0
22 end function tm_doit
23 end module krmod
25 ! { dg-final { scan-tree-dump " tm_doit \\(0B, 0\\);" "original" } }