| 1 |
! { dg-do run } |
| 2 |
! PR fortran/99206 - ICE in add_init_expr_to_sym, at fortran/decl.c:1980 |
| 3 |
! Check simplifier of RESHAPE for character arrays. |
| 4 |
|
| 5 |
program p |
| 6 |
character(*), parameter :: a(0) = reshape([ 'ab'], [0]) |
| 7 |
character(*,kind=4), parameter :: c(0) = reshape([4_'cd'], [0]) |
| 8 |
if (len (a) /= 2) stop 1 |
| 9 |
if (len (reshape ( ['ab'], [0])) /= 2) stop 2 |
| 10 |
if (kind(reshape ( ['ab'], [0])) /= 1) stop 3 |
| 11 |
if (len (c) /= 2) stop 4 |
| 12 |
if (len (reshape ([4_'cd'], [0])) /= 2) stop 5 |
| 13 |
if (kind(reshape ([4_'cd'], [0])) /= 4) stop 6 |
| 14 |
end |