]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fortran/intrinsic.texi: Add 'intrinsic' to SIGNAL example
authorTobias Burnus <tobias@codesourcery.com>
Tue, 17 Oct 2023 17:35:18 +0000 (19:35 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 18 Oct 2023 07:29:56 +0000 (09:29 +0200)
gcc/fortran/ChangeLog:

* intrinsic.texi (signal): Add 'intrinsic :: signal, sleep' to
the example to make it safer.

gcc/fortran/intrinsic.texi

index 0db557d5a38c961d60a19fe3627687940dc83885..d1407186aea1af78e15ccff6f98200fc46ae9bcb 100644 (file)
@@ -13214,6 +13214,7 @@ contains
 end module
 program test_signal
   use m_handler
+  intrinsic :: signal, sleep
   call signal (12, handler_print)  ! 12 = SIGUSR2 (on some systems)
   call signal (10, 1)  ! 10 = SIGUSR1 and 1 = SIG_IGN (on some systems)