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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-fdump-tree-original" }
3
program main
4
  implicit none
5
  character(len=4) :: c
6
  integer :: i
7
  integer :: k1, k2, k3, k4, k11, k22, k33, k44
8
 
9
  k1 = 1
10
  k2 = 2
11
  k3 = 3
12
  k4 = 4
13
  k11 = 1
14
  k22 = 2
15
  k33 = 3
16
  k44 = 4
17
  c = 'abcd'
18
  if (c(2:) /= c(k2:k4)) call abort
19
  if (c(k2:k4) /= c(k22:)) call abort
20
  if (c(2:3) == c(1:2)) call abort
21
  if (c(1:2) == c(2:3)) call abort
22
  if (c(k1:) == c(k2:)) call abort
23
  if (c(:3) == c(:k4)) call abort
24
  if (c(:k4) == c(:3)) call abort
25
  if (c(:k3) == c(:k44)) call abort
26
end program main
27
 
28
! { dg-final { scan-tree-dump-times "gfortran_compare_string" 8 "original" } }
29
! { dg-final { cleanup-tree-dump "original" } }
30
 

powered by: WebSVN 2.1.0

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