aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/hello/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/hello/src')
-rw-r--r--tests/manual/hello/src/foo.cpp5
-rw-r--r--tests/manual/hello/src/foo.h7
-rw-r--r--tests/manual/hello/src/main.cpp17
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/manual/hello/src/foo.cpp b/tests/manual/hello/src/foo.cpp
new file mode 100644
index 000000000..6d2828af9
--- /dev/null
+++ b/tests/manual/hello/src/foo.cpp
@@ -0,0 +1,5 @@
+int someUsefulFunction()
+{
+ return 156;
+}
+
diff --git a/tests/manual/hello/src/foo.h b/tests/manual/hello/src/foo.h
new file mode 100644
index 000000000..1e4fd7b94
--- /dev/null
+++ b/tests/manual/hello/src/foo.h
@@ -0,0 +1,7 @@
+#ifndef FOO_H
+#define FOO_H
+
+int someUsefulFunction();
+
+#endif
+
diff --git a/tests/manual/hello/src/main.cpp b/tests/manual/hello/src/main.cpp
new file mode 100644
index 000000000..c08389c00
--- /dev/null
+++ b/tests/manual/hello/src/main.cpp
@@ -0,0 +1,17 @@
+#include "foo.h"
+#include <stdio.h>
+
+#ifndef HAVE_MAIN_CPP
+# error missing define HAVE_MAIN_CPP
+#endif
+
+int main()
+{
+ someUsefulFunction();
+#ifdef _DEBUG
+ puts("Hello World! (debug version)");
+#else
+ puts("Hello World! (release version)");
+#endif
+}
+