blob: 878a64b9ac785f57966c9c1a56375f550a702c04 [file] [log] [blame]
! { dg-do compile }
!
! PR 36112
! Check correct bounds-checking behavior for character-array-constructors.
! This should not need any -fbounds-check and is enabled all the time.
character(len=128) :: arr(2) = (/ "abc", "foobar" /) ! { dg-error "Different CHARACTER lengths" }
arr = (/ "abc", "foobar" /) ! { dg-error "Different CHARACTER lengths" }
end