2 ! { dg
-options
"-std=legacy" }
4 ! PR
27784 - Different strings should compare unequal even
if they
5 ! have CHAR
(0) in them
.
9 call setval
(str1
, str2
)
10 if (str1
== str2
) STOP 1
13 subroutine setval
(str1
, str2
)
14 character*3 str1
, str2
15 str1
= 'a' // CHAR
(0) // 'a'
16 str2
= 'a' // CHAR
(0) // 'c'