Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gfortran.dg / selected_char_kind_4.f90
blob046ddf0e74cfcf187201ddaf84b1a37ca7d9923e
1 ! { dg-do run }
3 ! Check that runtime result values of SELECTED_CHAR_KIND agree with
4 ! front-end simplification results.
6 implicit none
7 character(len=20) :: s
9 s = "ascii"
10 if (selected_char_kind(s) /= selected_char_kind("ascii")) call abort
12 s = "default"
13 if (selected_char_kind(s) /= selected_char_kind("default")) call abort
15 s = "iso_10646"
16 if (selected_char_kind(s) /= selected_char_kind("iso_10646")) call abort
18 s = ""
19 if (selected_char_kind(s) /= selected_char_kind("")) call abort
21 s = "invalid"
22 if (selected_char_kind(s) /= selected_char_kind("invalid")) call abort
24 end