Peter Klausler be133ff4c4
[flang] Fix preprocessor regression (#134405)
For numeric kind suffixes like 1_foo, the preprocessor should be able to
perform macro replacement for macros named either "_foo" or "foo".

Fixes https://github.com/llvm/llvm-project/issues/133399.
2025-04-09 12:30:05 -07:00

10 lines
149 B
Fortran

! RUN: %flang -E %s 2>&1 | FileCheck %s
#define n k
#define _m _p
parameter(n=4)
!CHECK: print *,1_k
print *,1_n
!CHECK: print *,1_p
print *,1_m
end