PR middle-end/77674
[official-gcc.git] / gcc / testsuite / gfortran.dg / bounds_check_array_ctor_3.f90
blob878a64b9ac785f57966c9c1a56375f550a702c04
1 ! { dg-do compile }
3 ! PR 36112
4 ! Check correct bounds-checking behavior for character-array-constructors.
5 ! This should not need any -fbounds-check and is enabled all the time.
7 character(len=128) :: arr(2) = (/ "abc", "foobar" /) ! { dg-error "Different CHARACTER lengths" }
8 arr = (/ "abc", "foobar" /) ! { dg-error "Different CHARACTER lengths" }
9 end