PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / character_comparison_6.f90
blob5391f88697d08549b1ba12b1fc99bc9b47545f37
1 ! { dg-do run }
2 ! { dg-options "-O -fdump-tree-original" }
3 program main
4 implicit none
5 character(len=4) :: c
6 integer :: n
7 integer :: i
8 common /foo/ i
10 n = 0
11 i = 0
12 c = 'abcd'
13 if ('a ' // c == 'a' // c) call abort
14 if ('a' // c == 'a ' // c) call abort
15 end program main
17 ! { dg-final { scan-tree-dump-times "gfortran_concat_string" 4 "original" } }
18 ! { dg-final { scan-tree-dump-times "gfortran_compare_string" 2 "original" } }