Fixes #13388. Also updates the expected output for T12504, which previously contained a redundant LINE pragma.