gcc/testsuite/gfortran.dg/coarray_data_2.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-additional-options "-fcoarray=lib -Warray-temporaries" } |
| 3 | ! |
| 4 | ! PR fortran/99838 - ICE due to missing locus with data statement for coarray |
| 5 | ! |
| 6 | ! Contributed by Gerhard Steinmetz |
| 7 | |
| 8 | program p |
| 9 | type t |
| 10 | integer :: a |
| 11 | end type |
| 12 | type(t) :: x(3)[*] |
| 13 | data x%a /1, 2, 3/ ! { dg-warning "Creating array temporary" } |
| 14 | end |