common_11.f90

来自「用于进行gcc测试」· F90 代码 · 共 31 行

F90
31
字号
! { dg-do compile }!! PR fortran/34658!! Check for more COMMON constrains!block data  implicit none  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" }  data x/5/, a/5/  common // a, b  common /a/ x, yend block datasubroutine foo()  implicit none  type t    sequence    integer :: i = 5  end type t  type(t) x ! { dg-error "may not have default initializer" }  common // xend subroutine fooprogram test  implicit none  common /a/ I ! { dg-warning "in COMMON but only in BLOCK DATA initialization" }  integer :: I = 43end program test

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?