aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f9014
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90 b/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90
new file mode 100644
index 000000000..18cb103cb
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.fortran-torture/execute/write_a_1.f90
@@ -0,0 +1,14 @@
+! pr 15311
+! output with 'A' edit descriptor
+ program write_a_1
+ character*25 s
+! string = format
+ write(s,'(A11)') "hello world"
+ if (s.ne."hello world") call abort
+! string < format
+ write(s,'(A2)') "hello world"
+ if (s.ne."he") call abort
+! string > format
+ write(s,'(A18)') "hello world"
+ if (s.ne." hello world") call abort
+ end