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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-std=gnu" }
3
! PR43217 Output of Hollerith constants which are not a multiple of 4 bytes
4
! Test case prepared from OP by Jerry DeLisle  
5
program hello2
6
  call wrtout (9hHELLO YOU, 9)
7
  stop
8
end
9
 
10
subroutine wrtout (iarray, nchrs)
11
  integer iarray(1)
12
  integer nchrs
13
 
14
  integer icpw
15
  data icpw/4/
16
  integer i, nwrds
17
  character(len=33) outstr
18
 
19
  nwrds = (nchrs + icpw - 1) /icpw
20
  write(outstr,'(4(z8," "))') (iarray(i), i=1,nwrds)
21
  if (outstr.ne."4C4C4548 4F59204F 20202055" .and. &
22
 &    outstr.ne."48454C4C 4F20594F 55202020") call abort
23
  return
24
end
25
! { dg-warning "Hollerith constant" "" { target *-*-* } 6 }
26
! { dg-warning "Rank mismatch" "" { target *-*-* } 6 }

powered by: WebSVN 2.1.0

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