diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index cab39aaed3de547dd6cf67f14f3800f67c471e46..1bc26ff0e3de11f45e2e60239199106a2a935dd5 100644
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -65,6 +65,10 @@
 #define MALLOC_FAIL
 #include "os_support.h"
 #include <malloc.h>
+
+static const opus_int32 opus_apps[3] = {OPUS_APPLICATION_VOIP,
+       OPUS_APPLICATION_AUDIO,OPUS_APPLICATION_RESTRICTED_LOWDELAY};
+
 void *malloc_hook(__attribute__((unused)) size_t size,
                   __attribute__((unused)) const void *caller)
 {
@@ -73,8 +77,6 @@ void *malloc_hook(__attribute__((unused)) size_t size,
 #endif
 
 static const opus_int32 opus_rates[5] = {48000,24000,16000,12000,8000};
-static const opus_int32 opus_apps[3] = {OPUS_APPLICATION_VOIP,
-       OPUS_APPLICATION_AUDIO,OPUS_APPLICATION_RESTRICTED_LOWDELAY};
 
 opus_int32 test_dec_api(void)
 {