Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/intrinsic_signal.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/49690 ! ! Reduced test case, based on the one of Debian bug #631204 ! subroutine ctrlc_ast common /xinterrupt/ interrupted logical interrupted interrupted = .true. end subroutine ctrlc_ast subroutine set_ctrl_c(ctrlc_ast) external ctrlc_ast intrinsic signal integer old_handle common /xinterrupt/ interrupted logical interrupted old_handler = signal(2, ctrlc_ast) end subroutine set_ctrl_c