array_memcpy_2.f90

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

F90
21
字号
! This checks that the "z = y" assignment is not considered copyable, as the! array is of a derived type containing allocatable components.  Hence, we! we should expand the scalarized loop, which contains *two* memcpy calls.! { dg-do compile }! { dg-options "-O2 -fdump-tree-original" }  type :: a    integer, allocatable :: i(:)  end type a  type :: b    type (a), allocatable :: at(:)  end type b  type(b) :: y(2), z(2)  z = yend! { dg-final { scan-tree-dump-times "memcpy" 2 "original" } }! { dg-final { cleanup-tree-dump "original" } }

⌨️ 快捷键说明

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