Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gfortran.dg / function_kinds_3.f90
blobdb95729690b311fe809a842116f1ae1ecb50a98a
1 ! { dg-do compile }
3 ! PR fortran/34254
5 ! The character-kind parameter was not accepted.
7 module m
8 integer, parameter :: char_t = kind('a')
9 end module m
11 character(1,char_t) function test1()
12 use m
13 test1 = 'A'
14 end function test1
16 character(len=1,kind=char_t) function test2()
17 use m
18 test2 = 'A'
19 end function test2
21 character(kind=char_t,len=1) function test3()
22 use m
23 test3 = 'A'
24 end function test3
26 character(1,kind=char_t) function test4()
27 use m
28 test4 = 'A'
29 end function test4