
…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.
15 lines
238 B
Fortran
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
|