Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/pr15140.f90 @ 120:f93fa5091070
fix conv1.c
author | mir3636 |
---|---|
date | Thu, 08 Mar 2018 14:53:42 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! PR 15140: we used to fail an assertion, because we don't use the ! argument of the subroutine directly, but instead use a copy of it. function M(NAMES) CHARACTER*(*) NAMES(*) if (any(names(1:2).ne."asdfg")) call abort m = LEN(NAMES(1)) END function M character(5) :: c(2) c = "asdfg" if(m(c).ne.5) call abort() end