diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-19 17:56:37 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-19 17:56:37 +0000 |
commit | f81424362ed2c19415d5c09343737a8c799b47b7 (patch) | |
tree | 0d3a9e78065a6083c400be80b25fd4fd8e585a7f /gcc/testsuite/gfortran.dg/allocate_error_1.f90 | |
parent | 27fa90116c262fdd12ce9bcfd9eb7bd1c57b3180 (diff) | |
download | gcc-f81424362ed2c19415d5c09343737a8c799b47b7.tar.gz |
2008-09-18 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r140490
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@140495 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/allocate_error_1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/allocate_error_1.f90 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/allocate_error_1.f90 b/gcc/testsuite/gfortran.dg/allocate_error_1.f90 new file mode 100644 index 00000000000..42a12159e28 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/allocate_error_1.f90 @@ -0,0 +1,14 @@ +! { dg-do run } +! { dg-shouldfail "runtime error" } +! { dg-output "At line 13.*Attempting to allocate .* 'arr'" } + +! PR fortran/37507 +! Check that locus is printed for ALLOCATE errors. + +PROGRAM main + IMPLICIT NONE + INTEGER, ALLOCATABLE :: arr(:) + + ALLOCATE (arr(5)) + ALLOCATE (arr(6)) +END PROGRAM main |