summaryrefslogtreecommitdiff
path: root/package/helloworld/src
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-10 00:12:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-12-10 00:12:49 +0100
commit1f0eb3671160c04d1ca61c39b35a446b5841b50c (patch)
treef24f20f38f6d353e271b6fd911683ea0c0193ab2 /package/helloworld/src
parente183d9ba8e8bc5309fa145da1809c7e78489f05b (diff)
helloworld: add C++ test
Diffstat (limited to 'package/helloworld/src')
-rw-r--r--package/helloworld/src/helloworld.c2
-rw-r--r--package/helloworld/src/helloworld.cc6
2 files changed, 7 insertions, 1 deletions
diff --git a/package/helloworld/src/helloworld.c b/package/helloworld/src/helloworld.c
index 232880377..02f468f1f 100644
--- a/package/helloworld/src/helloworld.c
+++ b/package/helloworld/src/helloworld.c
@@ -1,6 +1,6 @@
#include <stdio.h>
int main() {
- printf("Hello World\n");
+ printf("Hello World! (C)\n");
return 0;
}
diff --git a/package/helloworld/src/helloworld.cc b/package/helloworld/src/helloworld.cc
new file mode 100644
index 000000000..ac640ca2a
--- /dev/null
+++ b/package/helloworld/src/helloworld.cc
@@ -0,0 +1,6 @@
+#include <iostream>
+
+main() {
+ std::cout<<"Hello World! (C++)\n";
+ return 0;
+}