mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-30 16:42:07 +00:00
18 lines
544 B
C++
18 lines
544 B
C++
#include <curl/curl.h>
|
|
|
|
#include <cassert>
|
|
#include <string>
|
|
|
|
// Use (void) to silent unused warnings.
|
|
#define assertm(exp, msg) assert(((void)msg, exp))
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
curl_version_info_data* data = curl_version_info(CURLVERSION_NOW);
|
|
|
|
assertm(std::string(data->version) == std::string("7.74.0"), "The version of curl does not match the expected version");
|
|
assertm(std::string(data->ssl_version) == std::string("OpenSSL/1.1.1k"), "The version of openssl does not match the expected version");
|
|
|
|
return 0;
|
|
}
|