nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / char_type_len_2.f90
blobbfa7945dbc66a45530d3fa08b382beda729926da
1 ! { dg-do compile }
2 ! PR31251 Non-integer character length leads to segfault
3 ! Submitted by Jerry DeLisle <jvdelisle@gcc.gnu.org>
5 ! Updated to deal with the fix for PR fortran/67805.
7 character(len=2.3) :: s ! { dg-error "INTEGER expression expected" }
8 character(kind=1,len=4.3) :: t ! { dg-error "INTEGER expression expected" }
9 character(len=,,7.2,kind=1) :: u ! { dg-error "Syntax error in CHARACTER declaration" }
10 character(len=7,kind=2) :: v ! ! { dg-error "Kind 2 is not supported for CHARACTER" }
11 character(kind=2) :: w ! ! { dg-error "Kind 2 is not supported for CHARACTER" }
12 character(kind=2,len=7) :: x ! ! { dg-error "Kind 2 is not supported for CHARACTER" }
13 end