Peter Klausler bde2f39ae0
[flang] Don't check fixed form label field too early (#117040)
When a fixed form source line begins with the name of a macro, don't
emit the usual warning message about a non-decimal character in the
label field. (The check for a macro was only being applied to free form
source lines, and the label field checking was unconditional).

Fixes https://github.com/llvm/llvm-project/issues/116914.
2024-11-21 10:48:36 -08:00

6 lines
143 B
Fortran

! RUN: %flang -E %s 2>&1 | FileCheck %s
! CHECK-NOT: Character in fixed-form label field must be a digit
#define KWM !
KWM a comment
end