📄 used_types_11.f90
字号:
! { dg-do compile }! Tests the patch for PR 29641, in which an ICE would occur with! the ordering of USE statements below.!! Contributed by Jakub Jelinek <jakub@gcc.gnu.org>!module A type :: T integer :: u end type Tend module Amodule Bcontains function foo() use A type(T), pointer :: foo nullify (foo) end function fooend module Bsubroutine bar() use B ! The order here is important use A ! If use A comes before use B, it works type(T), pointer :: x x => foo()end subroutine bar use B use A type(T), pointer :: x type(T), target :: y x => y print *, associated (x) x => foo () print *, associated (x)end! { dg-final { cleanup-modules "A B" } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -