Debian Codegraph @

vendored-meson/meson/test cases/fortran/15 include/include_syntax.f90

raw
1 program test_include_syntax
2
3 implicit none
4
5 integer :: x, y
6
7 x = 1
8 y = 0
9
10 ! include "timestwo.f90"
11
12 include "timestwo.f90" ! inline comment check
13 if (x/=2) error stop 'failed on first include'
14
15 ! leading space check
16 include 'timestwo.f90'
17 if (x/=4) error stop 'failed on second include'
18
19 ! Most Fortran compilers can't handle the non-standard #include,
20 ! including (ha!) Flang, Gfortran, Ifort and PGI.
21 ! #include "timestwo.f90"
22
23 print *, 'OK: Fortran include tests: x=',x
24
25 end program