Skip to content

Commit 7ca0ba2

Browse files
committed
Update: source parsing test - include statement
Demonstrates bug in include statement parsing - currently erroneously parsing all statements that begin with 'include'.
1 parent b6ec6b1 commit 7ca0ba2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fpm/test/fpm_test/test_source_parsing.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ subroutine test_include_stmt(error)
199199
& 'program test', &
200200
& ' implicit none', &
201201
& ' include "included_file.f90"', &
202+
& ' logical :: include_comments', &
203+
& ' include_comments = .false.', &
202204
& ' contains ', &
203205
& ' include "second_include.f90"', &
204206
& 'end program test'

0 commit comments

Comments
 (0)