Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gfortran.dg / bounds_check_array_ctor_1.f90
blob45b21d21e70b980f11655c64c7669fec7e8f4675
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 ("this is long")
9 contains
10 subroutine test(s)
11 character(len=*) :: s
12 character(len=128) :: arr(2)
13 arr = (/ s, "abc" /)
14 end subroutine test
15 end
16 ! { dg-output "Different CHARACTER lengths \\(12/3\\) in array constructor" }