5 integer(kind
=4), target
:: a(1:, 1:)
6 integer(kind
=4), pointer :: b(:, :)
8 write (*, fmt
=a(1,2)) 1, 2, 3, 4, 5, 6, 7, 8
9 write (*, fmt
=b(1,2)) 1, 2, 3, 4, 5, 6, 7, 8
14 write (*, fmt
=b
) 1, 2, 3
15 write (*, fmt
=a
) 1, 2, 3
16 write (*, fmt
=a(2)) 1, 2, 3
20 integer(kind
=4), target
:: a(:, :)
23 integer(kind
=4) :: a(2, 3)
31 ! { dg-warning "Non-character in FORMAT tag" "FMT" { target *-*-* } 8 }
32 ! { dg-error "Non-character assumed shape array element in FORMAT tag" "element" { target *-*-* } 8 }
34 ! { dg-warning "Non-character in FORMAT tag" "FMT" { target *-*-* } 9 }
35 ! { dg-error "Non-character pointer array element in FORMAT tag" "element" { target *-*-* } 9 }
37 ! { dg-error "reference to the assumed size array" "assumed-size" { target *-*-* } 14 }
38 ! { dg-error "reference to the assumed size array" "assumed-size" { target *-*-* } 15 }
39 ! { dg-warning "Non-character in FORMAT tag" "FMT" { target *-*-* } 16 }
40 ! { dg-error "Non-character assumed size array element in FORMAT tag" "element" { target *-*-* } 16 }
42 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 24 }
43 ! { dg-warning "Conversion" "conversion" { target *-*-* } 24 }
45 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 25 }
46 ! { dg-warning "Conversion" "conversion" { target *-*-* } 25 }
48 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 26 }
49 ! { dg-warning "Conversion" "conversion" { target *-*-* } 26 }
51 ! { dg-warning "Hollerith constant" "const" { target *-*-* } 27 }
52 ! { dg-warning "Conversion" "conversion" { target *-*-* } 27 }