intrinsic.f90
来自「用于进行gcc测试」· F90 代码 · 共 37 行
F90
37 行
! { dg-do compile }! { dg-options "-c -Wall" }subroutine valid intrinsic :: abs ! ok, intrinsic function intrinsic :: cpu_time ! ok, intrinsic subroutineend subroutinesubroutine warnings ! the follow three are ok in general, but ANY ! type is ignored, even the correct one real, intrinsic :: sin ! { dg-warning "is ignored" } real :: asin ! { dg-warning "is ignored" } intrinsic :: asin intrinsic :: tan ! { dg-warning "is ignored" } real :: tan ! wrong types here integer, intrinsic :: cos ! { dg-warning "is ignored" } integer :: acos ! { dg-warning "is ignored" } intrinsic :: acos ! ordering shall not matter intrinsic :: atan ! { dg-warning "is ignored" } integer :: atanend subroutinesubroutine errors intrinsic :: foo ! { dg-error "does not exist" } real, intrinsic :: bar ! { dg-error "does not exist" } real, intrinsic :: mvbits ! { dg-error "shall not have a type" }end subroutine
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?