qemu/meson/test cases/cmake/19 advanced options/main.cpp

19 lines
317 B
C++

#include <iostream>
#include <cmMod.hpp>
#include <cmTest.hpp>
using namespace std;
int main(void) {
cmModClass obj("Hello");
cout << obj.getStr() << endl;
int v1 = obj.getInt();
int v2 = getTestInt();
if (v1 != ((1 + v2) * 2)) {
cerr << "Number test failed" << endl;
return 1;
}
return 0;
}