Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/bounds_check_array_ctor_5.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR 36112 ! Check correct bounds-checking behavior for character-array-constructors. ! No need for -fbounds-check, enabled unconditionally. character(len=5) :: s = "hello" character(len=128) :: arr(3) arr = (/ "abc", "foo", s /) ! { dg-error "Different CHARACTER lengths" } end