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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
C { dg-do run }
2
C { dg-options "-std=legacy" }
3
C
4
C     PR 30525 - comparisons with padded spaces were done
5
C     signed.
6
      program main
7
      character*2 c2
8
      character*1 c1, c3, c4
9
C
10
C  Comparison between char(255) and space padding
11
C
12
      c2 = 'a' // char(255)
13
      c1 = 'a'
14
      if (.not. (c2 .gt. c1)) call abort
15
C
16
C  Comparison between char(255) and space
17
C
18
      c3 = ' '
19
      c4 = char(255)
20
      if (.not. (c4 .gt. c3)) call abort
21
 
22
C
23
C  Check constant folding
24
C
25
      if (.not. ('a' // char(255) .gt. 'a')) call abort
26
 
27
      if (.not. (char(255) .gt. 'a')) call abort
28
      end

powered by: WebSVN 2.1.0

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