2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / selected_char_kind_3.f90
blob5cc7b112496f990a70eda48efb2391fdbaf03b0b
1 ! { dg-do compile }
2 ! { dg-options "-std=f95 -pedantic -Wall" }
4 ! Check that SELECTED_CHAR_KIND is rejected with -std=f95
6 implicit none
7 character(kind=selected_char_kind("ascii")) :: s ! { dg-error "is not included in the selected standard" }
8 s = "" ! { dg-error "has no IMPLICIT type" }
9 print *, s
10 end