PR 78534 Change character length from int to size_t
[official-gcc.git] / gcc / testsuite / gfortran.dg / string_1_lp64.f90
bloba0edbefc53e4cb8df3148b41556f568f588fe782
1 ! { dg-do compile }
2 ! { dg-require-effective-target lp64 }
3 ! { dg-require-effective-target fortran_integer_16 }
4 program main
5 implicit none
6 integer(kind=16), parameter :: l1 = 2_16**64_16
7 character (len=2_16**64_16+4_16), parameter :: s = "" ! { dg-error "too large" }
8 character (len=2_16**64_8+4_16) :: ch ! { dg-error "too large" }
9 character (len=l1 + 1_16) :: v ! { dg-error "too large" }
10 character (len=int(huge(0_8),kind=16) + 1_16) :: z ! { dg-error "too large" }
11 character (len=int(huge(0_8),kind=16) + 0_16) :: w
13 print *, len(s)
15 end program main