array_memset_1.f90
来自「用于进行gcc测试」· F90 代码 · 共 65 行
F90
65 行
! { dg-do compile }! { dg-options "-O2 -fdump-tree-original" }subroutine i1(a) integer :: a(20) a = 0;end subroutinesubroutine i2(a) integer :: a(20) a(:) = 0;end subroutinesubroutine i3(a) integer :: a(20) a(1:20) = 0;end subroutinesubroutine r1(a) real :: a(20) a = 0.0;end subroutinesubroutine r2(a) real :: a(20) a(:) = 0.0;end subroutinesubroutine r3(a) real :: a(20) a(1:20) = 0.0;end subroutinesubroutine z1(a) complex :: a(20) a = 0;end subroutinesubroutine z2(a) complex :: a(20) a(:) = 0;end subroutinesubroutine z3(a) complex :: a(20) a(1:20) = 0;end subroutinesubroutine l1(a) logical :: a(20) a = .false.;end subroutinesubroutine l2(a) logical :: a(20) a(:) = .false.;end subroutinesubroutine l3(a) logical :: a(20) a(1:20) = .false.;end subroutine! { dg-final { scan-tree-dump-times "memset" 12 "original" } }! { dg-final { cleanup-tree-dump "original" } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?