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

📄 used_dummy_types_2.f90

📁 linux下编程用 编译软件
💻 F90
字号:
! { dg-do compile }! This tests that the fix for PR25391 also fixes PR20244. If! the USE mod1 in subroutine foo were deleted, the code would! compile fine.  With the USE statement, the compiler would! make new TYPEs for T1 and T2 and bomb out in fold-convert.! This is a slightly more elaborate test than! used_dummy_types_1.f90 and came from the PR.!! Contributed by Jakub Jelinek  <jakubcc.gnu.org>module mod1  type t1    real :: f1  end type t1  type t2    type(t1), pointer :: f2(:)    real, pointer :: f3(:,:)  end type t2end module mod1module mod2  use mod1  type(t1), pointer, save :: v(:)contains  subroutine foo (x)    use mod1    implicit none    type(t2) :: x    integer :: d    d = size (x%f3, 2)    v = x%f2(:)  end subroutine fooend module mod2

⌨️ 快捷键说明

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