aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLKedward <laurence.kedward@bristol.ac.uk>2020-10-03 12:49:30 +0100
committerLKedward <laurence.kedward@bristol.ac.uk>2020-10-03 13:23:53 +0100
commit48dd8bcc11e9fc3aaecc3088dd093664a58e40be (patch)
treeb8ed5ae146d1d97214b63f4a0f128b087e796859
parent4ef3025845b54b81d3ac5644899f42cb84dd95c8 (diff)
downloadfpm-48dd8bcc11e9fc3aaecc3088dd093664a58e40be.tar.gz
fpm-48dd8bcc11e9fc3aaecc3088dd093664a58e40be.zip
Update: source parsing test - include statement
Demonstrates bug in include statement parsing - currently erroneously parsing all statements that begin with 'include'.
-rw-r--r--fpm/test/fpm_test/test_source_parsing.f902
1 files changed, 2 insertions, 0 deletions
diff --git a/fpm/test/fpm_test/test_source_parsing.f90 b/fpm/test/fpm_test/test_source_parsing.f90
index 0b92bef..a8bbc09 100644
--- a/fpm/test/fpm_test/test_source_parsing.f90
+++ b/fpm/test/fpm_test/test_source_parsing.f90
@@ -199,6 +199,8 @@ contains
& 'program test', &
& ' implicit none', &
& ' include "included_file.f90"', &
+ & ' logical :: include_comments', &
+ & ' include_comments = .false.', &
& ' contains ', &
& ' include "second_include.f90"', &
& 'end program test'