aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/hello/src/main.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2012-02-15 15:56:22 +0100
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-02-15 21:57:41 +0100
commit5672fa8fd3bd6b09125d9e143a7bb277cea2e87f (patch)
treec945b6ad76bd8c8f6af8b520cf3ce72ef298d4b5 /tests/manual/hello/src/main.cpp
Long live qbs!
Diffstat (limited to 'tests/manual/hello/src/main.cpp')
-rw-r--r--tests/manual/hello/src/main.cpp17
1 files changed, 17 insertions, 0 deletions
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
+}
+