URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do run }
|
! { dg-do run }
|
! { dg-options "-std=legacy" }
|
! { dg-options "-std=legacy" }
|
!
|
!
|
! PR 27784 - Different strings should compare unequal even if they
|
! PR 27784 - Different strings should compare unequal even if they
|
! have CHAR(0) in them.
|
! have CHAR(0) in them.
|
|
|
program main
|
program main
|
character*3 str1, str2
|
character*3 str1, str2
|
call setval(str1, str2)
|
call setval(str1, str2)
|
if (str1 == str2) call abort
|
if (str1 == str2) call abort
|
end
|
end
|
|
|
subroutine setval(str1, str2)
|
subroutine setval(str1, str2)
|
character*3 str1, str2
|
character*3 str1, str2
|
str1 = 'a' // CHAR(0) // 'a'
|
str1 = 'a' // CHAR(0) // 'a'
|
str2 = 'a' // CHAR(0) // 'c'
|
str2 = 'a' // CHAR(0) // 'c'
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.