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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [intrinsic_index.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 695 jeremybenn
! Program to test the INDEX intrinsic
2
program test
3
  character(len=10) a
4
  integer w
5
  if (index("FORTRAN", "R") .ne. 3) call abort
6
  if (index("FORTRAN", "R", .TRUE.) .ne. 5) call abort
7
  if (w ("FORTRAN") .ne. 3) call abort
8
end
9
 
10
function w(str)
11
  character(len=7) str
12
  integer w
13
  w = index(str, "R")
14
end
15
 

powered by: WebSVN 2.1.0

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