OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [function_kinds_3.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR fortran/34254
4
!
5
! The character-kind parameter was not accepted.
6
!
7
module m
8
  integer, parameter :: char_t = kind('a')
9
end module m
10
 
11
character(1,char_t) function test1()
12
  use m
13
  test1 = 'A'
14
end function test1
15
 
16
character(len=1,kind=char_t) function test2()
17
  use m
18
  test2 = 'A'
19
end function test2
20
 
21
character(kind=char_t,len=1) function test3()
22
  use m
23
  test3 = 'A'
24
end function test3
25
 
26
character(1,kind=char_t) function test4()
27
  use m
28
  test4 = 'A'
29
end function test4
30
 
31
! { dg-final { cleanup-modules "m" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.