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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-Wno-align-commons" }
3
!
4
! PR fortran/45044
5
!
6
! Named common blocks need to be all of the same size
7
! check that the compiler warns for those.
8
 
9
module m
10
  common /xx/ a
11
end module m
12
 
13
subroutine two()
14
integer :: a, b, c
15
real(8) :: y
16
common /xx/ a, b, c, y ! { dg-warning "Named COMMON block 'xx' at \\(1\\) shall be of the same size as elsewhere \\(24 vs 4 bytes" }
17
end
18
 
19
 
20
subroutine one()
21
integer :: a, b
22
common /xx/ a, b ! { dg-warning "Named COMMON block 'xx' at \\(1\\) shall be of the same size as elsewhere \\(8 vs 24 bytes" }
23
end
24
 
25
call two()
26
end
27
 
28
! { dg-final { cleanup-modules "m" } }

powered by: WebSVN 2.1.0

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