* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_associated_1.f90
blobf38f27331da66665929648e36256226b53d1fd68
1 ! Check that associated works correctly for character arrays.
2 ! { dg-do run }
3 program main
4 character (len = 5), dimension (:), pointer :: ptr
5 character (len = 5), dimension (2), target :: a = (/ 'abcde', 'fghij' /)
6 ptr => a
7 if (.not. associated (ptr, a)) call abort
8 end program main