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