OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_verify_1.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! Test the verify intrinsic.  We were ignoring the last character.
3
program prog
4
  character(len=1) :: c1
5
  character(len=4) :: c4
6
  c1 = "E"
7
  if (verify(c1, "1") .ne. 1) call abort
8
  c4 = "ABBA"
9
  if (verify(c4, "A") .ne. 2) call abort
10
  if (verify(c4, "A", back = .true.) .ne. 3) call abort
11
  if (verify(c4, "AB") .ne. 0) call abort
12
end program

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.