[flang-commits] [flang] [flang][preprocessing] Mix preprocessing directives with free form li… (PR #96244)
via flang-commits
flang-commits at lists.llvm.org
Fri Jun 21 12:41:00 PDT 2024
foxtran wrote:
Another example with .f90:
test.f90:
```fortran
program main
#include "inc.f"
&.44
end program main
```
inc.f:
```fortran
print *, 5.&
```
After running flang tests:
```
$ flang-new -fc1 -E test.f90
#line "./test.f90" 1
program main
#line "./inc.f" 1
print 5.end program main
```
while the expected output is:
```
$ flang-new -fc1 -E test.f90
#line "./test.f90" 1
program main
#line "./inc.f" 1
print 5.44
#line ??? ! I have no idea :)
end program main
```
https://github.com/llvm/llvm-project/pull/96244
More information about the flang-commits
mailing list