@@ -309,7 +309,7 @@ subroutine test_module(error)
309
309
310
310
open (file= temp_file, newunit= unit)
311
311
write (unit, ' (a)' ) &
312
- & ' module my_mod' , &
312
+ & ' module my_mod ! A trailing comment ' , &
313
313
& ' use module_one' , &
314
314
& ' interface' , &
315
315
& ' module subroutine f()' , &
@@ -320,8 +320,17 @@ subroutine test_module(error)
320
320
& ' program =1' , &
321
321
& ' program (i) =1' , &
322
322
& ' contains' , &
323
- & ' module procedure f()' , &
324
- & ' end procedure f' , &
323
+ & ' module subroutine&' , &
324
+ & ' e()' , &
325
+ & ' end subroutine e' , &
326
+ & ' module subroutine f()' , &
327
+ & ' end subroutine f' , &
328
+ & ' module function g()' , &
329
+ & ' end function g' , &
330
+ & ' module integer function h()' , &
331
+ & ' end function h()' , &
332
+ & ' module real function i()' , &
333
+ & ' end function i()' , &
325
334
& ' end module test'
326
335
close (unit)
327
336
@@ -712,7 +721,7 @@ subroutine test_invalid_module(error)
712
721
713
722
open (file= temp_file, newunit= unit)
714
723
write (unit, ' (a)' ) &
715
- & ' module :: my_mod' , &
724
+ & ' module ::my_mod' , &
716
725
& ' end module test'
717
726
close (unit)
718
727
@@ -721,8 +730,6 @@ subroutine test_invalid_module(error)
721
730
return
722
731
end if
723
732
724
- write (* ,* ) ' "' ,f_source% modules_used(1 )% s,' "'
725
-
726
733
end subroutine test_invalid_module
727
734
728
735
0 commit comments