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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! PR fortran/39865
2
! { dg-do compile }
3
 
4
subroutine foo (a)
5
  integer(kind=4), target :: a(1:, 1:)
6
  integer(kind=4), pointer :: b(:, :)
7
  b => a
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
10
end subroutine foo
11
subroutine bar (a, b)
12
  character :: b(2,*)
13
  integer :: a(*)
14
  write (*, fmt=b) 1, 2, 3
15
  write (*, fmt=a) 1, 2, 3
16
  write (*, fmt=a(2)) 1, 2, 3
17
end subroutine
18
  interface
19
    subroutine foo (a)
20
      integer(kind=4), target :: a(:, :)
21
    end subroutine foo
22
  end interface
23
  integer(kind=4) :: a(2, 3)
24
  a = 4HXXXX
25
  a(2,2) = 4H (8I
26
  a(1,3) = 2H4)
27
  a(2,3) = 1H
28
  call foo (a(2:2,:))
29
end
30
 
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 }
33
 
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 }
36
 
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 }
41
 
42
! { dg-warning "Hollerith constant" "const" { target *-*-* } 24 }
43
! { dg-warning "Conversion" "conversion" { target *-*-* } 24 }
44
 
45
! { dg-warning "Hollerith constant" "const" { target *-*-* } 25 }
46
! { dg-warning "Conversion" "conversion" { target *-*-* } 25 }
47
 
48
! { dg-warning "Hollerith constant" "const" { target *-*-* } 26 }
49
! { dg-warning "Conversion" "conversion" { target *-*-* } 26 }
50
 
51
! { dg-warning "Hollerith constant" "const" { target *-*-* } 27 }
52
! { dg-warning "Conversion" "conversion" { target *-*-* } 27 }

powered by: WebSVN 2.1.0

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