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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR fortran/37400
4
!
5
module mod
6
   implicit character(len=*,kind=kind('A')) (Q)
7
   parameter(Q1 = '12345678')     ! len=8
8
   parameter(Q2 = 'abcdefghijkl') ! len=12
9
   contains
10
      subroutine sub(Q3)
11
         if(len('#'//Q3//'#') /= 15) call abort()
12
         if('#'//Q3//'#' /= '#ABCDEFGHIJKLM#') call abort()
13
      end subroutine sub
14
end module mod
15
program startest
16
   use mod
17
   implicit none
18
   if(len('#'//Q1//'#') /= 10) call abort()
19
   if(len('#'//Q2//'#') /= 14) call abort()
20
   if('#'//Q1//'#' /='#12345678#') call abort()
21
   if('#'//Q2//'#' /='#abcdefghijkl#') call abort()
22
   call sub('ABCDEFGHIJKLM') ! len=13
23
end program startest
24
 
25
! { dg-final { cleanup-modules "mod" } }

powered by: WebSVN 2.1.0

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