]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
stdckdint-h C++ tests: Verify the ckd_* functions can be invoked.
authorCollin Funk <collin.funk1@gmail.com>
Tue, 20 May 2025 04:23:56 +0000 (21:23 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 20 May 2025 04:23:56 +0000 (21:23 -0700)
* tests/test-stdckdint-h-c++.cc (main): Invoke ckd_add, ckd_sub, and
ckd_mul.

ChangeLog
tests/test-stdckdint-h-c++.cc

index 75792d4fe22260302e7918bb50b684457d5a106d..2351f847ef50bdbef2d6aa519770188d7c66fe29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-19  Collin Funk  <collin.funk1@gmail.com>
+
+       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  <eggert@cs.ucla.edu>
 
        tests: simplify test_exit_status decl
index 00680385cf7be67703b3cf45947e33b0c91a6141..071d7be7407d5fc20212c516026c342c7814e868 100644 (file)
 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));
 }