Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/char_pointer_assign_2.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 } ! Tests the fix for PRs20895 and 25030, where pointer assignments ! of different length characters were accepted. character(4), target :: ch1(2) character(4), pointer :: ch2(:) character(5), pointer :: ch3(:) ch2 => ch1 ! Check correct is OK ch3 => ch1 ! { dg-error "Unequal character lengths \\(5/4\\)" } end