coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_allocation_1.f90
blob119badb4d105834d17e1e1e9c319fefcf250fe05
1 ! PR fortran/31974
2 ! { dg-do run }
3 subroutine foo (n)
4 integer :: n
5 character (len = n) :: v(n)
6 v = ''
7 if (any (v /= '')) call abort
8 end subroutine foo
10 call foo(7)
11 end