aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/cmake/10 header only/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/cmake/10 header only/main.cpp')
-rw-r--r--meson/test cases/cmake/10 header only/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/cmake/10 header only/main.cpp b/meson/test cases/cmake/10 header only/main.cpp
new file mode 100644
index 000000000..1417881ff
--- /dev/null
+++ b/meson/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;
+}