diff options
author | Tobias Burnus <burnus@gcc.gnu.org> | 2007-06-29 12:05:11 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-06-29 12:05:11 +0200 |
commit | 690f48b1b48b5626cb9b78944f1da201d11e00ec (patch) | |
tree | 5a15c68fa131b46551384a7b6a74591a59848e0a /gcc | |
parent | 27178277a339a17c0293c9068a9135d4f908a854 (diff) | |
download | gcc-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.f90 | 10 |
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 |