1! { dg-do run } 2! { dg-options "-fbounds-check" } 3! { dg-shouldfail "foo" } 4! 5! PR 36112 6! Check correct bounds-checking behaviour for character-array-constructors. 7 8 call test ("short") 9contains 10 subroutine test(s) 11 character(len=*) :: s 12 character(len=128) :: arr(3) 13 arr = (/ s, "this is long", "this one too" /) 14 end subroutine test 15end 16! { dg-output "Different CHARACTER lengths \\(5/12\\) in array constructor" } 17