coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr69962.f90
blob2684398ee311aaf8537ea280938bbeb958275a31
1 ! { dg-do compile }
2 program p
3 integer :: n = 1
4 character(3), parameter :: x(2) = ['abc', 'xyz']
5 character(2), parameter :: y(2) = [x(2)(2:3), x(n)(1:2)] ! { dg-error "CHARACTER length must be a constant" }
6 end