Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/intrinsic_verify_1.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 verify intrinsic. We were ignoring the last character. program prog character(len=1) :: c1 character(len=4) :: c4 c1 = "E" if (verify(c1, "1") .ne. 1) call abort c4 = "ABBA" if (verify(c4, "A") .ne. 2) call abort if (verify(c4, "A", back = .true.) .ne. 3) call abort if (verify(c4, "AB") .ne. 0) call abort end program