diff options
Diffstat (limited to 'meson/test cases/cmake/19 advanced options/main.cpp')
-rw-r--r-- | meson/test cases/cmake/19 advanced options/main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/cmake/19 advanced options/main.cpp b/meson/test cases/cmake/19 advanced options/main.cpp new file mode 100644 index 000000000..6a071cc21 --- /dev/null +++ b/meson/test cases/cmake/19 advanced options/main.cpp @@ -0,0 +1,18 @@ +#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; +} |