Peter Klausler 86bee81912
[flang][preprocessor] Fixed-form continuation across preprocessing di… (#95332)
…rective

Implement fixed-form line continuation when the continuation line is the
result of text produced by an #include or other preprocessing directive.
This accommodates the somewhat common practice of putting dummy or
actual arguments into a header file and #including it into several code
sites.

Fixes https://github.com/llvm/llvm-project/issues/78928.
2024-06-13 11:22:27 -07:00

15 lines
238 B
Fortran

! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK: call foo ( 3.14159)
! CHECK: subroutine foo(test)
call foo (
#include "ff-args.h"
end
#define TEST
subroutine foo(
#ifdef TEST
+test)
#else
+)
#endif
end