2017-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / selected_char_kind_3.f90
blobfad5e46c287b7dcfb9a886e87d1c503614cf6ccc
1 ! { dg-do compile }
2 ! { dg-options "-std=f95 -pedantic -Wall -Wno-intrinsics-std" }
4 ! Check that SELECTED_CHAR_KIND is rejected with -std=f95
6 implicit none
7 character(kind=selected_char_kind("ascii")) :: s ! { dg-error "has no IMPLICIT type" }
8 s = "" ! { dg-error "has no IMPLICIT type" }
9 print *, s
10 end