⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alloc_comp_constraint_5.f90

📁 用于进行gcc测试
💻 F90
字号:
! { dg-do compile }! Check that ALLOCATABLE components aren't allowed to the right of a non-zero! rank part reference.program test    implicit none    type :: foo        real, allocatable :: bar(:)    end type foo    type(foo), target :: x(3)    integer :: i    real, pointer :: p(:)    allocate(x(:)%bar(5))! { dg-error "must not have the ALLOCATABLE attribute" }    x(:)%bar(1) = 1.0    ! { dg-error "must not have the ALLOCATABLE attribute" }    p => x(:)%bar(1)     ! { dg-error "must not have the ALLOCATABLE attribute" }end program test

⌨️ 快捷键说明

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