mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-04 08:02:31 +00:00
16 lines
305 B
C++
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!";
|
||
|
}
|