Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/associate_27.f90 @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! ! Test the fix for PR80120 ! ! Contributed by Marco Restelli <mrestelli@gmail.com> ! program p implicit none type :: t character(len=25) :: text(2) end type t type(t) :: x x%text(1) = "ABC" x%text(2) = "defgh" associate( c => x%text ) if (c(1)(:maxval(len_trim(c))) .ne. trim (x%text(1))) call abort if (c(2)(:maxval(len_trim(c))) .ne. trim (x%text(2))) call abort end associate end program p