Fixed the issue, where the extra text on #else line (' Z' in the example
below) caused the data from the "else" clause to be processed together
with the data of "then" clause.
```
#ifndef XYZ42
PARAMETER(A=2)
#else Z
PARAMETER(A=3)
#endif
end
```
12 lines
218 B
Fortran
12 lines
218 B
Fortran
! RUN: %flang -E %s 2>&1 | FileCheck %s
|
|
#ifndef XYZ42
|
|
PARAMETER(A=2)
|
|
#else Z
|
|
PARAMETER(A=3)
|
|
#endif
|
|
! Ensure that "PARAMETER(A" is printed only once
|
|
! CHECK: PARAMETER(A
|
|
! CHECK-NOT: PARAMETER(A
|
|
end
|
|
|