summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/read_x_eor.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/read_x_eor.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/read_x_eor.f9010
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/read_x_eor.f90 b/gcc/testsuite/gfortran.dg/read_x_eor.f90
new file mode 100644
index 000000000..064835a8b
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/read_x_eor.f90
@@ -0,0 +1,10 @@
+! { dg-do run }
+! ( dg-output "^" }
+!
+! Test fix for pr24785 - EOR used to scrub the 2X.
+! Reduced from PR example submitted by Harald Anlauf <anlauf@gmx.de>
+!
+ program x_with_advance_bug
+ write (*,'(A,2X)', advance="no") "<"
+ write (*,'(A)') ">" ! { dg-output "< >" }
+ end