! { dg-do run }! { dg-options "-std=legacy" }!! PR 19451: The test for advance='NO' with eor used to be reversed.program maincharacter*2copen(12,status='SCRATCH')write(12,'(A)')'123','456'rewind(12)read(12,'(A2)',advance='NO',eor=100)c100continueend program main