aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/multiarch
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-04-29 15:41:46 +0100
committerAlex Bennée <alex.bennee@linaro.org>2019-05-28 10:28:51 +0100
commit49d755d02ef24df43747bbbbfd073f347f343ddf (patch)
tree5a2ca5a09b61d67f1a0325ddc965d529c7919bc5 /tests/tcg/multiarch
parent8041650aefa7f22fddee945f92ecf5f4f2cb92eb (diff)
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')
-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;
+}