xref: /freebsd/sys/contrib/libsodium/test/default/sodium_version.c (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1 
2 #define TEST_NAME "sodium_version"
3 #include "cmptest.h"
4 
5 int
main(void)6 main(void)
7 {
8     printf("%d\n", sodium_version_string() != NULL);
9     printf("%d\n", sodium_library_version_major() > 0);
10     printf("%d\n", sodium_library_version_minor() >= 0);
11 #ifdef SODIUM_LIBRARY_MINIMAL
12     assert(sodium_library_minimal() == 1);
13 #else
14     assert(sodium_library_minimal() == 0);
15 #endif
16 
17     return 0;
18 }
19