2008-07-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / bounds_check_array_ctor_4.f90
blob1d3bac83a715ec2902da8308f5fac7917fe58b50
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", "this is long")
9 contains
10 subroutine test(r, s)
11 character(len=*) :: r, s
12 character(len=128) :: arr(2)
13 arr = (/ r, s /)
14 end subroutine test
15 end
16 ! { dg-output "Different CHARACTER lengths \\(5/12\\) in array constructor" }