diff options
| author | Alex Bennée | 2019-04-29 16:41:46 +0200 |
|---|---|---|
| committer | Alex Bennée | 2019-05-28 11:28:51 +0200 |
| commit | 49d755d02ef24df43747bbbbfd073f347f343ddf (patch) | |
| tree | 5a2ca5a09b61d67f1a0325ddc965d529c7919bc5 /tests/tcg/multiarch/system | |
| parent | tests/tcg/multiarch: add support for multiarch system tests (diff) | |
| download | qemu-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')
| -rw-r--r-- | tests/tcg/multiarch/system/hello.c | 14 |
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; +} |
