diff options
Diffstat (limited to '')
-rw-r--r-- | test cases/cmake/10 header only/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/cmake/10 header only/main.cpp b/test cases/cmake/10 header only/main.cpp new file mode 100644 index 0000000..1417881 --- /dev/null +++ b/test cases/cmake/10 header only/main.cpp @@ -0,0 +1,16 @@ +#include <iostream> +#include <cmMod.hpp> + +using namespace std; + +#define EXPECTED "Hello World compDef 42" + +int main(void) { + cmModClass obj("Hello"); + cout << obj.getStr() << endl; + if (obj.getStr() != EXPECTED) { + cerr << "Expected: '" << EXPECTED << "'" << endl; + return 1; + } + return 0; +} |