Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / bounds_check_array_ctor_7.f90
blob2a13be2beb00fcd1e2dbdb6ebdb39310768d0c85
1 ! { dg-do run }
2 ! { dg-options "-fbounds-check" }
3 ! { dg-shouldfail "foo" }
5 ! PR 36112
6 ! Check correct bounds-checking behaviour for character-array-constructors.
8 call test ("short")
9 contains
10 subroutine test(s)
11 character(len=*) :: s
12 character(len=128) :: arr(3)
13 arr = (/ "this is long", "this one too", s /)
14 end subroutine test
15 end
16 ! { dg-output "Different CHARACTER lengths \\(12/5\\) in array constructor" }