1145519Sdarrenr! { dg-do compile }
2145510Sdarrenr! Tests the fix for PRs20895 and 25030, where pointer assignments
322514Sdarrenr! of different length characters were accepted.
480486Sdarrenr  character(4), target :: ch1(2)
522514Sdarrenr  character(4), pointer :: ch2(:)
680486Sdarrenr  character(5), pointer :: ch3(:)
7153881Sguido
822514Sdarrenr  ch2 => ch1  ! Check correct is OK
922514Sdarrenr  ch3 => ch1  ! { dg-error "Unequal character lengths \\(5/4\\)" }
1026119Sdarrenr
1126119Sdarrenrend
1226119Sdarrenr