2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-28 08:43:26 +00:00
rules_foreign_cc/examples/make_simple/test_libb.cpp
UebelAndre e285764b78
Restructed examples and enabled more testing (#515)
* Reorganized examples

* Documentation

* Third party
2021-02-26 20:21:13 +00:00

15 lines
289 B
C++

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