coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / shape_5.f90
blobed128bcd20282304a1cc7ed9d85801b51deb1419
1 ! { dg-do run }
2 ! PR 40067 - this used to segfault on an unallocated return array.
3 integer, dimension(10) :: int1d
4 integer, dimension(:), pointer :: int1d_retrieved
6 allocate(int1d_retrieved(10))
7 if (any(shape(int1d_retrieved) /= shape(INT1D))) call abort()
8 end