diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/fmt_f_an_p.f')
-rw-r--r-- | gcc/testsuite/gfortran.dg/fmt_f_an_p.f | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/fmt_f_an_p.f b/gcc/testsuite/gfortran.dg/fmt_f_an_p.f new file mode 100644 index 000000000..e492cec38 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/fmt_f_an_p.f @@ -0,0 +1,10 @@ +! { dg-do run } +! PR38285 wrong i/o output: interaction between f and p for output +! Special case of kPFw.d when d = 0 + program f_and_p + character(28) string + write(string,1) 3742. , 0.3742 + 1 format ( f14.0, 4pf14.0 ) + if (string.ne." 3742. 3742.") call abort + end program f_and_p + |