Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gfortran.dg/blockdata_3.f90 @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gfortran.dg/blockdata_3.f90 Fri Oct 27 22:46:09 2017 +0900 @@ -0,0 +1,28 @@ +! { dg-do compile } +! { dg-options "-W -Wall" } +! Tests the fix for PR29539, in which the derived type in a blockdata +! cause an ICE. With the fix for PR29565, this now compiles and runs +! correctly. +! +! Contributed by Bernhard Fischer <aldot@gcc.gnu.org> +! +block data + common /c/ d(5), cc + type c_t + sequence + integer i + end type c_t + type (c_t) :: cc + data d /5*1./ + data cc%i /5/ +end + + common /c/ d(5), cc + type c_t + sequence + integer i + end type c_t + type (c_t) :: cc + print *, d + print *, cc +end