[flang] Remove typo that affected complex namelist input
authorPeter Klausler <pklausler@nvidia.com>
Fri, 19 Nov 2021 23:49:16 +0000 (15:49 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 22 Nov 2021 23:06:46 +0000 (15:06 -0800)
commitd02b318af636a887e85741a5fe699fe3852d1199
tree7a86024cd9fb5bc341f3d8aed4d7a9bc486807b5
parent2f5d6a0ea51b8c9ac3d241dbdd05f96e35193a26
[flang] Remove typo that affected complex namelist input

A recent patch to real/complex formatted input included what must
have been an editing hiccup: "++ ++p" instead of "++p".  This
compiles, and it broke the consumption of the trailing ')' of a
complex value in namelist input by skipping over the character.

Extend existing test to cover this case.

Differential Revision: https://reviews.llvm.org/D114297
flang/runtime/edit-input.cpp
flang/unittests/Runtime/NumericalFormatTest.cpp