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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [character_comparison_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
! { dg-options "-O -fdump-tree-original" }
3
program main
4
  implicit none
5
  character(len=4) :: c
6
  integer :: n
7
  integer :: i
8
  common /foo/ i
9
 
10
  n = 0
11
  i = 0
12
  c = 'abcd'
13
  n = n + 1 ; if (c == c) call yes
14
  n = n + 1 ; if (c >= c) call yes
15
  n = n + 1 ; if (c <= c) call yes
16
  n = n + 1 ; if (c .eq. c) call yes
17
  n = n + 1 ; if (c .ge. c) call yes
18
  n = n + 1 ; if (c .le. c) call yes
19
  if (c /= c) call abort
20
  if (c > c) call abort
21
  if (c < c) call abort
22
  if (c .ne. c) call abort
23
  if (c .gt. c) call abort
24
  if (c .lt. c) call abort
25
  if (n /= i) call abort
26
end program main
27
 
28
subroutine yes
29
  implicit none
30
  common /foo/ i
31
  integer :: i
32
  i = i + 1
33
end subroutine yes
34
 
35
! { dg-final { scan-tree-dump-times "gfortran_compare_string" 0 "original" } }
36
! { dg-final { cleanup-tree-dump "original" } }
37
 

powered by: WebSVN 2.1.0

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