aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr20755.f
diff options
context:
space:
mode:
authorno-author <no-author@gcc.gnu.org>2005-06-30 07:25:15 +0000
committerno-author <no-author@gcc.gnu.org>2005-06-30 07:25:15 +0000
commit58c358cbd49366c3e9e9b644e28b0cc774dfc56d (patch)
treef43c25238ec2efd2ecede24e654a92c0456d6ed1 /gcc/testsuite/gfortran.dg/pr20755.f
parent5b5fcc5945558d32c619dd3047ae0ee16a6edd2f (diff)
This commit was manufactured by cvs2svn to create tagapple/gcc-5207
'apple-gcc-5207'. git-svn-id: https://gcc.gnu.org/svn/gcc/tags/apple-gcc-5207@101460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr20755.f')
-rw-r--r--gcc/testsuite/gfortran.dg/pr20755.f10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr20755.f b/gcc/testsuite/gfortran.dg/pr20755.f
new file mode 100644
index 00000000000..e2bac5a7dcc
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr20755.f
@@ -0,0 +1,10 @@
+! PR libfortran/20755
+! { dg-do run }
+ character*30 s
+
+ write (s,2000) 0.0, 0.02
+ if (s .ne. " 0.00 2.000E-02") call abort
+ write (s,2000) 0.01, 0.02
+ if (s .ne. " 1.000E-02 2.000E-02") call abort
+ 2000 format (1PG12.3,G12.3)
+ end