2014-07-12 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / alloc_alloc_expr_2.f90
blob16235e3904653a99e9ede170fc8e37d4b7dc1470
1 ! { dg-do compile }
2 ! This tests the fix for PR29343, in which the valid ALLOCATE statement
3 ! below triggered an error following the patch for PR20779 and PR20891.
5 ! Contributed by Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
7 Subroutine ReadParameters (Album)
8 Implicit NONE
11 Type GalleryP
12 Integer :: NoOfEntries
13 Character(80), Pointer :: FileName (:)
14 End Type GalleryP
17 Type(GalleryP), Intent(Out) :: Album
18 Allocate (Album%FileName (Album%NoOfEntries))
19 end