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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [character_comparison_5.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 "-O -fdump-tree-original" }
3
program main
4
  implicit none
5
  character(len=4) :: c, d
6
  integer :: n
7
  integer :: i
8
  common /foo/ i
9
 
10
  n = 0
11
  i = 0
12
  c = 'abcd'
13
  d = 'efgh'
14
  if (c // 'a' >= d // 'a') call abort
15
  if ('a' // c >= 'a' // d) call abort
16
end program main
17
 
18
! { dg-final { scan-tree-dump-times "gfortran_concat_string" 0 "original" } }
19
! { dg-final { scan-tree-dump-times "gfortran_compare_string" 2 "original" } }
20
! { dg-final { cleanup-tree-dump "original" } }
21
 

powered by: WebSVN 2.1.0

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