aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gfortran.dg/intrinsic_signal.f90
blob: cb57c952a2908ef4721da97643324f148c12c35e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
! { 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