PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / auto_char_dummy_array_2.f90
blob666418301e50481a73a0560f8d17617b882bb505
1 ! { dg-do compile }
2 ! Test fix for pr24789 - would segfault on the assignment
3 ! because the array descriptor size was not set.
5 ! This is the example submitted by Martin Reineke <martin@mpa-garching.mpg.de>
7 subroutine foo(vals)
8 character(len = *), pointer :: vals(:)
9 vals = ''
10 end subroutine