URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_verify_1.f90] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
! { 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
Go to most recent revision | Compare with Previous | Blame | View Log