aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <burnus@gcc.gnu.org>2007-06-29 12:05:11 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2007-06-29 12:05:11 +0200
commit690f48b1b48b5626cb9b78944f1da201d11e00ec (patch)
tree5a15c68fa131b46551384a7b6a74591a59848e0a /gcc
parent27178277a339a17c0293c9068a9135d4f908a854 (diff)
downloadgcc-690f48b1b48b5626cb9b78944f1da201d11e00ec.zip
gcc-690f48b1b48b5626cb9b78944f1da201d11e00ec.tar.gz
gcc-690f48b1b48b5626cb9b78944f1da201d11e00ec.tar.bz2
(forgot svn add in the previous commit)
2007-06-29 Tobias Burnus <burnus@net-b.de> PR fortran/32483 * gfortran.dg/fmt_read_2.f90: New. From-SVN: r126110
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gfortran.dg/fmt_read_2.f9010
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/fmt_read_2.f90 b/gcc/testsuite/gfortran.dg/fmt_read_2.f90
new file mode 100644
index 0000000..0f7f4d7
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/fmt_read_2.f90
@@ -0,0 +1,10 @@
+! { dg-do compile }
+! PR fortran/32483
+ implicit none
+ integer :: r
+ real :: a
+ write (*,'(i0)') r
+ read (*,'(i0)') r ! { dg-warning "Positive width required" }
+ read (*,'(f0.2)') a ! { dg-warning "Positive width required" }
+ print *, r,a
+ END