]> 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, 29 Jul 2025 16:06:38 +0000 (12:06 -0400)
commite7f1334ad02d4913346238aba58b0025ab7f455c
tree6b51643a7eeb283decd5e015b1b382905acea156
parentd33eb8356da0b419ca57185b0b746db7a5f43862
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.

(cherry picked from commit d44beb132850a8ced1b0614e2724f18465b4a737)
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