! { dg-do run }! { dg-options "-std=legacy" }!! PR 27784 - Different strings should compare unequal even if they! have CHAR(0) in them.program maincharacter*3str1,str2call setval(str1,str2)if(str1==str2)call abortendsubroutine setval(str1,str2)character*3str1,str2str1='a'//CHAR(0)//'a'str2='a'//CHAR(0)//'c'end