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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.dg/] [hollerith4.f90] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
! { dg-do run }
2
! Test Hollerith constant assigned to allocatable array
3
 
4
integer, allocatable :: c (:,:)
5
character (len = 20) ch
6
allocate (c(1,2))
7
 
8
c(1,1) = 4H(A4)
9
c(1,2) = 4H(A5)
10
 
11
write (ch, "(2A4)") c
12
if (ch .ne. "(A4)(A5)") call abort()
13
write (ch, c) 'Hello'
14
if (ch .ne. "Hell") call abort()
15
write (ch, c (1,2)) 'Hello'
16
if (ch .ne. "Hello") call abort()
17
end
18
 
19
! { dg-warning "Hollerith constant" "const" { target *-*-* } 8 }
20
! { dg-warning "Conversion" "conversion" { target *-*-* } 8 }
21
 
22
! { dg-warning "Hollerith constant" "const" { target *-*-* } 9 }
23
! { dg-warning "Conversion" "conversion" { target *-*-* } 9 }
24
 
25
! { dg-warning "Non-character in FORMAT tag" "" { target *-*-* } 13 }
26
 
27
! { dg-warning "Non-character in FORMAT tag" "" { target *-*-* } 15 }
28
 
29
 

powered by: WebSVN 2.1.0

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