summaryrefslogtreecommitdiffstats
path: root/tests/tcg/multiarch/system/hello.c
diff options
context:
space:
mode:
authorAlex Bennée2019-04-29 16:41:46 +0200
committerAlex Bennée2019-05-28 11:28:51 +0200
commit49d755d02ef24df43747bbbbfd073f347f343ddf (patch)
tree5a2ca5a09b61d67f1a0325ddc965d529c7919bc5 /tests/tcg/multiarch/system/hello.c
parenttests/tcg/multiarch: add support for multiarch system tests (diff)
downloadqemu-49d755d02ef24df43747bbbbfd073f347f343ddf.tar.gz
qemu-49d755d02ef24df43747bbbbfd073f347f343ddf.tar.xz
qemu-49d755d02ef24df43747bbbbfd073f347f343ddf.zip
tests/tcg/multiarch: add hello world system test
This is not really i386 only, we can have the same test for all architectures supporting system tests. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/tcg/multiarch/system/hello.c')
-rw-r--r--tests/tcg/multiarch/system/hello.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/system/hello.c b/tests/tcg/multiarch/system/hello.c
new file mode 100644
index 0000000000..821dc0ef09
--- /dev/null
+++ b/tests/tcg/multiarch/system/hello.c
@@ -0,0 +1,14 @@
+/*
+ * Hello World, system test version
+ *
+ * We don't have the benefit of libc, just builtin C primitives and
+ * whatever is in minilib.
+ */
+
+#include <minilib.h>
+
+int main(void)
+{
+ ml_printf("Hello World\n");
+ return 0;
+}