URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
!
|
!
|
! PR fortran/34658
|
! PR fortran/34658
|
!
|
!
|
! Check for more COMMON constrains
|
! Check for more COMMON constrains
|
!
|
!
|
block data
|
block data
|
implicit none
|
implicit none
|
integer :: x, a ! { dg-warning "Initialized variable 'a' at .1. is in a blank COMMON" }
|
integer :: x, a ! { dg-warning "Initialized variable 'a' at .1. is in a blank COMMON" }
|
integer :: y = 5, b = 5 ! { dg-warning "Initialized variable 'b' at .1. is in a blank COMMON" }
|
integer :: y = 5, b = 5 ! { dg-warning "Initialized variable 'b' at .1. is in a blank COMMON" }
|
data x/5/, a/5/
|
data x/5/, a/5/
|
common // a, b
|
common // a, b
|
common /a/ x, y
|
common /a/ x, y
|
end block data
|
end block data
|
|
|
subroutine foo()
|
subroutine foo()
|
implicit none
|
implicit none
|
type t
|
type t
|
sequence
|
sequence
|
integer :: i = 5
|
integer :: i = 5
|
end type t
|
end type t
|
type(t) x ! { dg-error "may not have default initializer" }
|
type(t) x ! { dg-error "may not have default initializer" }
|
common // x
|
common // x
|
end subroutine foo
|
end subroutine foo
|
|
|
program test
|
program test
|
implicit none
|
implicit none
|
common /a/ I ! { dg-warning "in COMMON but only in BLOCK DATA initialization" }
|
common /a/ I ! { dg-warning "in COMMON but only in BLOCK DATA initialization" }
|
integer :: I = 43
|
integer :: I = 43
|
end program test
|
end program test
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.