diff options
author | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-03 20:55:19 +0000 |
---|---|---|
committer | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-03 20:55:19 +0000 |
commit | 300e1002e0cf07d64e2c490e14f42b22ad84fe16 (patch) | |
tree | 7e1044c2bbcb08fcd4136cc187c4934f1cddeea5 /gcc | |
parent | 33e0bf2ff98524201155748afb656dd66ec187c6 (diff) | |
download | gcc-300e1002e0cf07d64e2c490e14f42b22ad84fe16.tar.gz |
2016-01-03 Paul Thomas <pault@gcc.gnu.org>
PR fortran/65045
* gfortran.dg/pr65045.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr65045.f90 | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 27a03a062c8..91499e3d6aa 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-01-03 Paul Thomas <pault@gcc.gnu.org> + + PR fortran/65045 + * gfortran.dg/pr65045.f90: New test. + 2016-01-02 Eric Botcazou <ebotcazou@adacore.com> * gnat.dg/specs/debug1.ads: Delete. diff --git a/gcc/testsuite/gfortran.dg/pr65045.f90 b/gcc/testsuite/gfortran.dg/pr65045.f90 new file mode 100644 index 00000000000..5b838d5fb03 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr65045.f90 @@ -0,0 +1,15 @@ +! { dg-do compile } +! +! Contributed by Walt Brainerd <walt.brainerd@gmail.com> +! +real :: i = 9.9 +i:block + if (i>7.7) then ! { dg-error "is not appropriate for an expression" } + exit i + else ! { dg-error "Unexpected ELSE statement" } + i = 2.2 ! { dg-error "is not a variable" } + end if ! { dg-error "Expecting END BLOCK statement" } +end block i ! { dg-error "Expecting END PROGRAM statement" } +print*,i ! { dg-error "not appropriate for an expression" } +end +! { dg-excess-errors "Unexpected end of file" } |