5 integer(kind
=4) :: a(1, 3)
7 write (t
, fmt
=a(1,2)) 1, 2, 3, 4, 5, 6, 7, 8
8 if (t
.ne
. ' 1 2 3 4 5 6 7 8') call abort
12 integer(kind
=4) :: a(1, 3)
15 integer(kind
=4) :: b(1,3)
16 character(len
=40) :: t
20 write (t
, fmt
=b(1,2)) 1, 2, 3, 4, 5, 6, 7, 8
21 if (t
.ne
. ' 1 2 3 4 5 6 7 8') call abort
25 ! { dg-warning "Non-character in FORMAT tag" "FMT" { target *-*-* } 7 }
26 ! { dg-warning "Non-character in FORMAT tag" "FMT" { target *-*-* } 20 }
28 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 17 }
29 ! { dg-warning "Conversion" "conversion" { target *-*-* } 17 }
31 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 18 }
32 ! { dg-warning "Conversion" "conversion" { target *-*-* } 18 }
34 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 19 }
35 ! { dg-warning "Conversion" "conversion" { target *-*-* } 19 }