aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/selected_char_kind_3.f90
blob: 5cc7b112496f990a70eda48efb2391fdbaf03b0b (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! { dg-options "-std=f95 -pedantic -Wall" }
!
! Check that SELECTED_CHAR_KIND is rejected with -std=f95
!
  implicit none
  character(kind=selected_char_kind("ascii")) :: s ! { dg-error "is not included in the selected standard" }
  s = "" ! { dg-error "has no IMPLICIT type" }
  print *, s
end