URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [function_optimize_10.f90] - Rev 694
Compare with Previous | Blame | View Log
! { do-do run }! PR 51858 - this used to generate wrong code.! Original test case by Don Simons.program mainimplicit nonelogical :: test1_oklogical :: test2_oklogical :: test3_okcharacter(len=1):: charqcharq = 'c'test1_ok = .true.test2_ok = .false.if (charq .eq. ' ') thentest1_ok = .false.else if ((my_ichar(charq).ge.97 .and. my_ichar(charq).le.103)) thentest2_OK = .true.end ifif ((.not. test1_ok) .or. (.not. test2_ok)) call aborttest1_ok = .true.test2_ok = .true.test3_ok = .false.if (charq .eq. ' ') thentest1_ok = .false.else if ((my_ichar(charq).lt.97 .or. my_ichar(charq).gt.103)) thentest2_ok = .false.else if ((my_ichar(charq).ge.97 .and. my_ichar(charq).le.103)) thentest3_ok = .true.end ifif ((.not. test1_ok) .or. (.not. test2_ok) .or. (.not. test3_ok)) call aborttest1_ok = .true.test2_ok = .true.test3_ok = .false.if (charq .eq. ' ') thentest1_ok = .false.else if ((my_ichar(charq).lt.97 .or. my_ichar(charq).gt.103)) thentest2_ok = .false.elsetest3_ok = .true.end ifif ((.not. test1_ok) .or. (.not. test2_ok) .or. (.not. test3_ok)) call abortcontainspure function my_ichar(c)integer :: my_icharcharacter(len=1), intent(in) :: cmy_ichar = ichar(c)end function my_icharend program main
