Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/merge_char_3.f90 @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fbounds-check" } ! { dg-shouldfail "Unequal character lengths" } ! PR fortran/38137 ! Test that -fbounds-check detects unequal character lengths to MERGE ! at runtime. ! Contributed by Tobias Burnus <burnus@gcc.gnu.org> subroutine foo(a) implicit none character(len=*) :: a character(len=3) :: b logical :: ll = .true. print *, merge(a,b,ll) ! Unequal character lengths end subroutine foo call foo("ab") end