common_10.f90

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

F90
56
字号
use iso_c_bindingimplicit nonetype, bind(C) :: mytype1  integer(c_int) :: x  real(c_float)    :: yend type mytype1type mytype2  sequence  integer :: x  real    :: yend type mytype2type mytype3  integer :: x  real    :: yend type mytype3type mytype4  sequence  integer, allocatable, dimension(:) :: xend type mytype4type mytype5  sequence  integer, pointer :: x  integer :: yend type mytype5type mytype6  sequence  type(mytype5) :: tend type mytype6type mytype7  sequence  type(mytype4) :: tend type mytype7common /a/ t1common /b/ t2common /c/ t3  ! { dg-error "has neither the SEQUENCE nor the BIND.C. attribute" }common /d/ t4  ! { dg-error "has an ultimate component that is allocatable" }common /e/ t5common /f/ t6common /f/ t7  ! { dg-error "has an ultimate component that is allocatable" }type(mytype1) :: t1type(mytype2) :: t2type(mytype3) :: t3type(mytype4) :: t4type(mytype5) :: t5type(mytype6) :: t6type(mytype7) :: t7end

⌨️ 快捷键说明

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