2 ! { dg-options "-fall-intrinsics -std=f95" }
3 ! PR15966, PR18781 & PR16531
16 data x
/16Habcdefghijklmnop
, 16Hqrstuvwxyz012345
/
17 data a
/8H(i3
),abc
, 0, 4H(i4
), 8H (i9
)/
19 data z1
/1h(,1hi
,1h6
,1h
)/
20 data z2
/4h(i7
),'xxxx','xxxx','xxxx'/
26 write (line
, '(3A4)') i
, l
, r
27 if (line
.ne
. 'Hello world!') call abort
32 write (line
, '(3A4, 8A)') i
, l
, r
, c
33 if (line
.ne
. 'ab ab ab ab ') call abort
35 write(line
, '(4A8, "!")' ) x
36 if (line
.ne
. 'abcdefghijklmnopqrstuvwxyz012345!') call abort
39 if (line
.ne
. ' 3') call abort
40 write (line
, a (1,2)) 4
41 if (line
.ne
. ' 4') call abort
43 if (line
.ne
. ' 5') call abort
45 if (line
.ne
. ' 6') call abort
47 if (line
.ne
. ' 7') call abort
48 write (line
, z2 (1,2)) 8
49 if (line
.ne
. ' 8') call abort
50 write (line
, '(16A)') z2
51 if (line
.ne
. '(i7)xxxx(i8)xxxx') call abort
59 write (line
, '(8a)') h
60 if (line
.ne
. ' hello') call abort
63 ! { dg-error "Hollerith constant" "const" { target *-*-* } 16 }
65 ! { dg-error "Hollerith constant" "const" { target *-*-* } 17 }
67 ! { dg-error "Hollerith constant" "const" { target *-*-* } 18 }
69 ! { dg-error "Hollerith constant" "const" { target *-*-* } 19 }
71 ! { dg-error "Hollerith constant" "const" { target *-*-* } 20 }
73 ! { dg-error "Hollerith constant" "const" { target *-*-* } 22 }
75 ! { dg-error "Hollerith constant" "const" { target *-*-* } 23 }
77 ! { dg-error "Hollerith constant" "const" { target *-*-* } 24 }
79 ! { dg-error "Hollerith constant" "const" { target *-*-* } 25 }
81 ! { dg-error "Hollerith constant" "const" { target *-*-* } 28 }
83 ! { dg-error "Hollerith constant" "const" { target *-*-* } 29 }
85 ! { dg-error "Hollerith constant" "const" { target *-*-* } 30 }
87 ! { dg-error "Hollerith constant" "const" { target *-*-* } 31 }
89 ! { dg-error "Hollerith constant" "const" { target *-*-* } 52 }
91 ! { dg-error "Non-character in FORMAT tag" "" { target *-*-* } 38 }
93 ! { dg-error "Non-character in FORMAT tag" "" { target *-*-* } 40 }