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/ninja_simple/test_libb.cpp
UebelAndre fc8efbdf7d
Added ninja rule for building Ninja projects (#527)
* Added `ninja` rule for building Ninja projects

* Third party ninja example
2021-03-01 15:46:25 +00:00

16 lines
305 B
C++

#include "liba.h"
#include <iostream>
#include <stdexcept>
#include <string>
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!";
}