gcc/testsuite/gfortran.dg/deferred_character_38.f90
raw| 1 | ! { dg-do run } |
| 2 | |
| 3 | ! Check for PR fortran/82904 |
| 4 | ! Contributed by G.Steinmetz <[email protected]> |
| 5 | |
| 6 | ! This test checks that 'IPA pass: inline' passes. |
| 7 | ! The initial version of the testcase contained coarrays, which does not work |
| 8 | ! yet. |
| 9 | |
| 10 | program p |
| 11 | save |
| 12 | character(:), allocatable :: x |
| 13 | character(:), allocatable :: y |
| 14 | allocate (character(3) :: y) |
| 15 | allocate (x, source='abc') |
| 16 | y = x |
| 17 | |
| 18 | if (y /= 'abc') stop 1 |
| 19 | end |
| 20 |