diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c
index 63f7e3f0c81c89f1c8f109fdd04192c34155a746..818c558b3d17b23a39bb275e64e62538c99a6810 100644
--- a/qemu-arm/test_main.c
+++ b/qemu-arm/test_main.c
@@ -18,6 +18,7 @@
 #include "tinytest.h"
 #include "tinytest_macros.h"
 
+void do_str(const char *src);
 inline void do_str(const char *src) {
     mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
     if (lex == NULL) {