rules_foreign_cc/examples/cmake_synthetic/test_libb.cpp

14 lines
306 B
C++

#include "libb.h"
#include <iostream>
#include <stdexcept>
#include <string>
int main(int argc, char* argv[])
{
std:: string result = hello_libb();
if (result != "Hello from LIBA! Hello from LIBB!") {
throw std::runtime_error("Wrong result: " + result);
}
std::cout << "Everything's fine!";
}