AArch64: correct constraint on Upl early clobber alternatives
[official-gcc.git] / gcc / testsuite / gfortran.dg / string_null_compare_1.f
blob35c56384fc35769c7d511bfecfa4ffb8e9e2dc3e
1 ! { dg-do run }
2 ! { dg-options "-std=legacy" }
4 ! PR 27784 - Different strings should compare unequal even if they
5 ! have CHAR(0) in them.
7 program main
8 character*3 str1, str2
9 call setval(str1, str2)
10 if (str1 == str2) STOP 1
11 end
13 subroutine setval(str1, str2)
14 character*3 str1, str2
15 str1 = 'a' // CHAR(0) // 'a'
16 str2 = 'a' // CHAR(0) // 'c'
17 end