From: Collin Funk Date: Tue, 20 May 2025 04:23:56 +0000 (-0700) Subject: stdckdint-h C++ tests: Verify the ckd_* functions can be invoked. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5948807b3e200214799d323d9784e74fa5f72e23;p=thirdparty%2Fgnulib.git stdckdint-h C++ tests: Verify the ckd_* functions can be invoked. * tests/test-stdckdint-h-c++.cc (main): Invoke ckd_add, ckd_sub, and ckd_mul. --- diff --git a/ChangeLog b/ChangeLog index 75792d4fe2..2351f847ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-05-19 Collin Funk + + stdckdint-h C++ tests: Verify the ckd_* functions can be invoked. + * tests/test-stdckdint-h-c++.cc (main): Invoke ckd_add, ckd_sub, and + ckd_mul. + 2025-05-18 Paul Eggert tests: simplify test_exit_status decl diff --git a/tests/test-stdckdint-h-c++.cc b/tests/test-stdckdint-h-c++.cc index 00680385cf..071d7be740 100644 --- a/tests/test-stdckdint-h-c++.cc +++ b/tests/test-stdckdint-h-c++.cc @@ -25,4 +25,10 @@ int main () { + /* We only check that the macros can be invoked here. The actual tests are + performed by the C program. */ + int r; + int a = 1; + int b = 1; + return !!(ckd_add (&r, a, b) || ckd_sub (&r, a, b) || ckd_mul (&r, a, b)); }