From f9a3862cefd16c78fb309aec4e3fad143a5d33c8 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 12 Sep 2019 10:19:31 -0700 Subject: [PATCH] Fix test_emulated_function_pointers_2 after recent fastcomp changes Function pointers in relocatable code are now less optimized, unless the functions are internal to the module (invisible to other modules). --- tests/test_other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_other.py b/tests/test_other.py index 5e2442cb942ad..e8ca2425ee052 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -6320,8 +6320,8 @@ def test_emulated_function_pointers_2(self): create_test_file('src.c', r''' #include typedef void (*fp)(); - void one() { EM_ASM( out('one') ); } - void two() { EM_ASM( out('two') ); } + static void one() { EM_ASM( out('one') ); } + static void two() { EM_ASM( out('two') ); } void test() { volatile fp f = one; f();