mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-25 17:31:25 +00:00
13 lines
285 B
C++
13 lines
285 B
C++
#include "libb.h"
|
|
|
|
#include <iostream>
|
|
#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!";
|
|
} |