]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: sqrt(0) is not an ec-argument error. [PR119885]
authorRobert Dubner <rdubner@symas.com>
Tue, 20 May 2025 15:49:43 +0000 (11:49 -0400)
committerRobert Dubner <rdubner@symas.com>
Tue, 20 May 2025 15:56:01 +0000 (11:56 -0400)
commitd44beb132850a8ced1b0614e2724f18465b4a737
tree974d023a9befa892d06de266914e5178a3a41d63
parent67584acb5906eb130223cd12f05161ca4de84d5f
cobol: sqrt(0) is not an ec-argument error. [PR119885]

libgcobol

PR cobol/119885
* intrinsic.cc: (__gg__sqrt): Change test from <= zero to < zero.

gcc/testsuite

* cobol.dg/group2/FUNCTION_SQRT__2_.cob: Testcase.
* cobol.dg/group2/FUNCTION_SQRT__2_.out: Known-good for the testcase.
gcc/testsuite/cobol.dg/group2/FUNCTION_SQRT__2_.cob [new file with mode: 0644]
gcc/testsuite/cobol.dg/group2/FUNCTION_SQRT__2_.out [new file with mode: 0644]
libgcobol/intrinsic.cc