9.2. ABORT

9.2 ABORT — Abort the program

Description:
ABORT causes immediate termination of the program. On operating systems that support a core dump, ABORT will produce a core dump. It will also print a backtrace, unless -fno-backtrace is given.
Standard:
GNU extension
Class:
Subroutine
Syntax:
CALL ABORT
Return value:
Does not return.
Example:
program test_abort
  integer :: i = 1, j = 2
  if (i /= j) call abort
end program test_abort
See also:
EXIT, KILL, BACKTRACE

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/ABORT.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部