Files
clang-p2996/flang/test/Parser/do100h.f
Peter Klausler a6569e578e [flang] Don't mistakenly tokenize a Hollerith literal from "DO 100 H=..." (bug #58732)
After tokenizing an identifier, don't allow the next token to be a
Hollerith literal.

Fixes https://github.com/llvm/llvm-project/issues/58732.

Differential Revision: https://reviews.llvm.org/D150406
2023-05-16 09:56:22 -07:00

8 lines
162 B
Fortran

! RUN: %flang_fc1 -E %s | FileCheck %s
! Test that Hollerith is not mistakenly tokenized here
!CHECK: do 100 h=1,10
do 100 h=1,10
100 continue
end